{"action":"closed","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/6883","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/6883/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/6883/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/6883/events","html_url":"https://github.com/hashicorp/terraform/issues/6883","id":156876686,"number":6883,"title":"Duplicate AWS SG error causes LC to lose state of SG on next apply.","user":{"login":"ghost","id":10137,"avatar_url":"https://avatars.githubusercontent.com/u/10137?v=3","gravatar_id":"","url":"https://api.github.com/users/ghost","html_url":"https://github.com/ghost","followers_url":"https://api.github.com/users/ghost/followers","following_url":"https://api.github.com/users/ghost/following{/other_user}","gists_url":"https://api.github.com/users/ghost/gists{/gist_id}","starred_url":"https://api.github.com/users/ghost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghost/subscriptions","organizations_url":"https://api.github.com/users/ghost/orgs","repos_url":"https://api.github.com/users/ghost/repos","events_url":"https://api.github.com/users/ghost/events{/privacy}","received_events_url":"https://api.github.com/users/ghost/received_events","type":"User","site_admin":false},"labels":[{"id":85946957,"url":"https://api.github.com/repos/hashicorp/terraform/labels/bug","name":"bug","color":"f7c6c7","default":true},{"id":127939518,"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/aws","name":"provider/aws","color":"bfdadc","default":false},{"id":120957393,"url":"https://api.github.com/repos/hashicorp/terraform/labels/waiting-response","name":"waiting-response","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-05-26T00:04:26Z","updated_at":"2016-11-03T16:01:52Z","closed_at":"2016-11-03T16:01:52Z","body":"### Terraform Version\n\n0.6.16\n### Affected Resource(s)\n- aws_security_group\n- aws_launch_configuration\n### Error Output\n\n[Gist](https://gist.github.com/dfoltin-bc/fbe56aa3ebbc7693366c7c83a572587d)\n### Expected Behavior\n\nOn the third run terraform should have continued where the second run left off and replaced the security groups and launch configurations.\n### Actual Behavior\n\nI have a few AWS launch configurations and each has an associated security group. All LCs and SGs are create_before_destroy lifecycles. The first run was successfully applied to AWS. I changed the SG config to accidentally have every SG be the same name. This caused the next apply (second run) to error out as expected on duplicate SG names. However, after I fixed the SGs to have unique names and applied again for a third run, tf crashed, seemingly from something wonky happening to the state file after the second run. A `terraform refresh` fixes the issue and a fourth run runs.\n"}}
{"actor":{"display_login":"catsby"}}