{"action":"closed","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/5977","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/5977/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/5977/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/5977/events","html_url":"https://github.com/hashicorp/terraform/issues/5977","id":145189071,"number":5977,"title":"Subnet couldn't be deleted due working Auto Scaling Group","user":{"login":"alexander-balashov","id":6177986,"avatar_url":"https://avatars.githubusercontent.com/u/6177986?v=3","gravatar_id":"","url":"https://api.github.com/users/alexander-balashov","html_url":"https://github.com/alexander-balashov","followers_url":"https://api.github.com/users/alexander-balashov/followers","following_url":"https://api.github.com/users/alexander-balashov/following{/other_user}","gists_url":"https://api.github.com/users/alexander-balashov/gists{/gist_id}","starred_url":"https://api.github.com/users/alexander-balashov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexander-balashov/subscriptions","organizations_url":"https://api.github.com/users/alexander-balashov/orgs","repos_url":"https://api.github.com/users/alexander-balashov/repos","events_url":"https://api.github.com/users/alexander-balashov/events{/privacy}","received_events_url":"https://api.github.com/users/alexander-balashov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-01T14:03:25Z","updated_at":"2016-04-08T02:01:34Z","closed_at":"2016-04-08T02:01:34Z","body":"**Reproduction steps**\r\n\r\n1. Deploy infrastructure\r\n1. Change config for networking resource that has bound to Auto Scaling Group (ASG) resource. For example: Change CIDR block at Subnet\r\n1. Try to update infrastructure\r\n\r\n**Executed result**\r\n\r\nInfrastructure should be successfully updated\r\n\r\n**Actual result**\r\n\r\nDeployment failed\r\n\r\n**Research results**\r\nTerraform marks Subnet for deleting and ASG for modification. But Subnet resource can't be deleted since ASG still uses Subnet resource.\r\n\r\nTerraform v0.6.11\r\n\r\nLog: \r\n\r\n```\r\n.......\r\naws_subnet.zone2: Destroying...\r\naws_subnet.zone1: Destroying...\r\nError applying plan:\r\n\r\n2 error(s) occurred:\r\n\r\n* aws_subnet.zone2: Error deleting subnet: timeout while waiting for state to become '[destroyed]'\r\n* aws_subnet.zone1: Error deleting subnet: timeout while waiting for state to become '[destroyed]'\r\n.......\r\n```"}}