{"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/5654","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/5654/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/5654/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/5654/events","html_url":"https://github.com/terraform-providers/terraform-provider-aws/issues/5654","id":353108927,"node_id":"MDU6SXNzdWUzNTMxMDg5Mjc=","number":5654,"title":"credit specification is updated after no changes in the code","user":{"login":"Jonathan-7","id":19592133,"node_id":"MDQ6VXNlcjE5NTkyMTMz","avatar_url":"https://avatars2.githubusercontent.com/u/19592133?v=4","gravatar_id":"","url":"https://api.github.com/users/Jonathan-7","html_url":"https://github.com/Jonathan-7","followers_url":"https://api.github.com/users/Jonathan-7/followers","following_url":"https://api.github.com/users/Jonathan-7/following{/other_user}","gists_url":"https://api.github.com/users/Jonathan-7/gists{/gist_id}","starred_url":"https://api.github.com/users/Jonathan-7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jonathan-7/subscriptions","organizations_url":"https://api.github.com/users/Jonathan-7/orgs","repos_url":"https://api.github.com/users/Jonathan-7/repos","events_url":"https://api.github.com/users/Jonathan-7/events{/privacy}","received_events_url":"https://api.github.com/users/Jonathan-7/received_events","type":"User","site_admin":false},"labels":[{"id":620316239,"node_id":"MDU6TGFiZWw2MjAzMTYyMzk=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/labels/bug","name":"bug","color":"f7c6c7","default":true},{"id":794043766,"node_id":"MDU6TGFiZWw3OTQwNDM3NjY=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/labels/service/ec2","name":"service/ec2","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-22T20:20:08Z","updated_at":"2018-09-01T09:35:23Z","closed_at":null,"author_association":"NONE","body":"<!---\r\nPlease note the following potential times when an issue might be in Terraform core:\r\n\r\n* [Configuration Language](https://www.terraform.io/docs/configuration/index.html) or resource ordering issues\r\n* [State](https://www.terraform.io/docs/state/index.html) and [State Backend](https://www.terraform.io/docs/backends/index.html) issues\r\n* [Provisioner](https://www.terraform.io/docs/provisioners/index.html) issues\r\n* [Registry](https://registry.terraform.io/) issues\r\n* Spans resources across multiple providers\r\n\r\nIf you are running into one of these scenarios, we recommend opening an issue in the [Terraform core repository](https://github.com/hashicorp/terraform/) instead.\r\n--->\r\n\r\n<!--- Please keep this note for the community --->\r\n\r\n### Community Note\r\n\r\n* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request\r\n* Please do not leave \"+1\" or \"me too\" comments, they generate extra noise for issue followers and do not help prioritize the request\r\n* If you are interested in working on this issue or have submitted a pull request, please leave a comment\r\n\r\n<!--- Thank you for keeping this note for the community --->\r\nHello,\r\nI ran into this a couple of times today while trying out the t3.micro instances. Even if I didn't change anything or I changed an unrelated resource (e.g the security group name) it would still update the credit specification.\r\n### Terraform Version\r\n\r\n<!--- Please run `terraform -v` to show the Terraform core version and provider version(s). If you are not running the latest version of Terraform or the provider, please upgrade because your issue may have already been fixed. [Terraform documentation on provider versioning](https://www.terraform.io/docs/configuration/providers.html#provider-versions). --->\r\nTerraform v0.11.8\r\n\r\n### Affected Resource(s)\r\n\r\n<!--- Please list the affected resources and data sources. --->\r\n\r\n* aws_instance\r\n\r\n### Terraform Configuration Files\r\n\r\n<!--- Information about code formatting: https://help.github.com/articles/basic-writing-and-formatting-syntax/#quoting-code --->\r\n\r\n```hcl\r\nprovider \"aws\" {\r\n  region = \"eu-west-1\"\r\n}\r\n\r\nresource \"aws_instance\" \"example\" {\r\n  ami                    = \"ami-0bdb1d6c15a40392c\"\r\n  instance_type          = \"t3.micro\"\r\n  vpc_security_group_ids = [\"${aws_security_group.allow_all.id}\"]\r\n  key_name = \"jons-ubuntu\"\r\n\r\n  user_data = <<-EOF\r\n              #!/bin/bash\r\n              yum -y install httpd\r\n              systemctl start httpd.service\r\n              systemctl enable httpd\r\n              echo \"Hello, World\" > /var/www/html/index.html\r\n              EOF\r\n\r\n  tags {\r\n    Name = \"terraform-example\"\r\n  }\r\n}\r\n\r\nresource \"aws_security_group\" \"allow_all\" {\r\n  name        = \"allow_everything\"\r\n  description = \"Allow all traffic\"\r\n\r\n  ingress {\r\n    from_port   = 0\r\n    to_port     = 0\r\n    protocol    = \"-1\"\r\n    cidr_blocks = [\"0.0.0.0/0\"]\r\n  }\r\n}\r\n```\r\n\r\n### Debug Output\r\nhttps://gist.github.com/Jonathan-7/6c33ec9315158eeb1e4278132e2ced1d\r\n<!---\r\nPlease provide a link to a GitHub Gist containing the complete debug output. Please do NOT paste the debug output in the issue; just paste a link to the Gist.\r\n\r\nTo obtain the debug output, see the [Terraform documentation on debugging](https://www.terraform.io/docs/internals/debugging.html).\r\n--->\r\n\r\n### Panic Output\r\n\r\n<!--- If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the `crash.log`. --->\r\n\r\n### Expected Behavior\r\nDon't update anything.\r\n<!--- What should have happened? --->\r\n\r\n### Actual Behavior\r\nChanged credit specification:\r\nTerraform will perform the following actions:\r\n\r\n  ~ aws_instance.example\r\n      credit_specification.0.cpu_credits: \"unlimited\" => \"standard\"\r\n\r\n<!--- What actually happened? --->\r\n\r\n### Steps to Reproduce\r\nrun terraform apply twice\r\n<!--- Please list the steps required to reproduce the issue. --->\r\n\r\n1. `terraform apply`\r\n2. `terraform apply`\r\n\r\n### Important Factoids\r\n\r\n<!--- Are there anything atypical about your accounts that we should know? For example: Running in EC2 Classic? --->\r\n\r\n### References\r\n\r\n<!---\r\nInformation about referencing Github Issues: https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests\r\n\r\nAre there any other GitHub issues (open or closed) or pull requests that should be linked here? Vendor documentation? For example:\r\n--->\r\n\r\n* #0000\r\n"},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/comments/417846476","html_url":"https://github.com/terraform-providers/terraform-provider-aws/issues/5654#issuecomment-417846476","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/5654","id":417846476,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzg0NjQ3Ng==","user":{"login":"kmotrebski","id":11849561,"node_id":"MDQ6VXNlcjExODQ5NTYx","avatar_url":"https://avatars2.githubusercontent.com/u/11849561?v=4","gravatar_id":"","url":"https://api.github.com/users/kmotrebski","html_url":"https://github.com/kmotrebski","followers_url":"https://api.github.com/users/kmotrebski/followers","following_url":"https://api.github.com/users/kmotrebski/following{/other_user}","gists_url":"https://api.github.com/users/kmotrebski/gists{/gist_id}","starred_url":"https://api.github.com/users/kmotrebski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmotrebski/subscriptions","organizations_url":"https://api.github.com/users/kmotrebski/orgs","repos_url":"https://api.github.com/users/kmotrebski/repos","events_url":"https://api.github.com/users/kmotrebski/events{/privacy}","received_events_url":"https://api.github.com/users/kmotrebski/received_events","type":"User","site_admin":false},"created_at":"2018-09-01T09:35:23Z","updated_at":"2018-09-01T09:35:23Z","author_association":"NONE","body":"I've encountered this with `t3.*` instances too. My version is `Terraform v0.11.1 + provider.aws v1.28.0`.\r\n\r\n@Jonathan-7 As my workaround I've decided to lock the `cpu_credits`:\r\n\r\n```tf\r\nresource \"aws_instance\" \"example\" {\r\n  # ...\r\n  credit_specification = {\r\n    cpu_credits = \"unlimited\"\r\n  }\r\n}\r\n```\r\n\r\nSo this is quite similar to `ignore_changes` solution, or am I wrong here?"}}
{"actor":{"display_login":"kmotrebski"}}