{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/2322","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/2322/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/2322/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/2322/events","html_url":"https://github.com/hashicorp/terraform/issues/2322","id":87703404,"number":2322,"title":"Unable to transition failed VPC Peering connection to deleted","user":{"login":"mikeyhill","id":421478,"avatar_url":"https://avatars.githubusercontent.com/u/421478?v=3","gravatar_id":"","url":"https://api.github.com/users/mikeyhill","html_url":"https://github.com/mikeyhill","followers_url":"https://api.github.com/users/mikeyhill/followers","following_url":"https://api.github.com/users/mikeyhill/following{/other_user}","gists_url":"https://api.github.com/users/mikeyhill/gists{/gist_id}","starred_url":"https://api.github.com/users/mikeyhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikeyhill/subscriptions","organizations_url":"https://api.github.com/users/mikeyhill/orgs","repos_url":"https://api.github.com/users/mikeyhill/repos","events_url":"https://api.github.com/users/mikeyhill/events{/privacy}","received_events_url":"https://api.github.com/users/mikeyhill/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/aws","name":"provider/aws","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-12T11:42:32Z","updated_at":"2015-06-27T17:46:55Z","closed_at":null,"body":"I've setup peering for two VPC's and missed adding the correct CIDR in my variables which caused the peering connection to fail.  Terraform is unable to transition the resource as well.  It seems to be stuck in this state in the console as well and cannot be deleted (I believe these remove themselves after a period of time).\r\n\r\n    InvalidStateTransition: Invalid state transition for pcx-5f8398s3e, attempted to transition from failed to deleting\r\n\r\n    \"aws_vpc_peering_connection.ops-peering\": {\r\n                    \"type\": \"aws_vpc_peering_connection\",\r\n                    \"depends_on\": [\r\n                        \"aws_vpc.main-vpc\"\r\n                    ],\r\n                    \"primary\": null,\r\n                    \"tainted\": [\r\n                        {\r\n                            \"id\": \"pcx-5f8398s3e\",\r\n                            \"attributes\": {\r\n                                \"accept_status\": \"failed\",\r\n                                \"auto_accept\": \"true\",\r\n                                \"id\": \"pcx-572fd73e\",\r\n                                \"peer_owner_id\": \"0747474747\",\r\n                                \"peer_vpc_id\": \"vpc-e3487778a\",\r\n                                \"tags.#\": \"0\",\r\n                                \"vpc_id\": \"vpc-xx73a223\"\r\n                            }\r\n                        }\r\n                    ]\r\n                }"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/116108236","html_url":"https://github.com/hashicorp/terraform/issues/2322#issuecomment-116108236","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/2322","id":116108236,"user":{"login":"mitchellh","id":1299,"avatar_url":"https://avatars.githubusercontent.com/u/1299?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchellh","html_url":"https://github.com/mitchellh","followers_url":"https://api.github.com/users/mitchellh/followers","following_url":"https://api.github.com/users/mitchellh/following{/other_user}","gists_url":"https://api.github.com/users/mitchellh/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchellh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchellh/subscriptions","organizations_url":"https://api.github.com/users/mitchellh/orgs","repos_url":"https://api.github.com/users/mitchellh/repos","events_url":"https://api.github.com/users/mitchellh/events{/privacy}","received_events_url":"https://api.github.com/users/mitchellh/received_events","type":"User","site_admin":false},"created_at":"2015-06-27T17:46:55Z","updated_at":"2015-06-27T17:46:55Z","body":"Should the correct behavior here be for Terraform to assume the connection is deleted if it is \"failed\" then?"}}