{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/1161","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/1161/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/1161/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/1161/events","html_url":"https://github.com/hashicorp/terraform/pull/1161","id":60315193,"number":1161,"title":"Add the auto_accept option for VpcPeeringConnection","user":{"login":"julienba","id":284866,"avatar_url":"https://avatars.githubusercontent.com/u/284866?v=3","gravatar_id":"","url":"https://api.github.com/users/julienba","html_url":"https://github.com/julienba","followers_url":"https://api.github.com/users/julienba/followers","following_url":"https://api.github.com/users/julienba/following{/other_user}","gists_url":"https://api.github.com/users/julienba/gists{/gist_id}","starred_url":"https://api.github.com/users/julienba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienba/subscriptions","organizations_url":"https://api.github.com/users/julienba/orgs","repos_url":"https://api.github.com/users/julienba/repos","events_url":"https://api.github.com/users/julienba/events{/privacy}","received_events_url":"https://api.github.com/users/julienba/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/enhancement","name":"enhancement","color":"d4c5f9"},{"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":7,"created_at":"2015-03-09T09:05:25Z","updated_at":"2015-03-16T18:06:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hashicorp/terraform/pulls/1161","html_url":"https://github.com/hashicorp/terraform/pull/1161","diff_url":"https://github.com/hashicorp/terraform/pull/1161.diff","patch_url":"https://github.com/hashicorp/terraform/pull/1161.patch"},"body":"Following the description of http://docs.aws.amazon.com/AWSEC2/latest/CommandLineReference/ApiReference-cmd-AcceptVpcPeeringConnection.html"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/81847394","html_url":"https://github.com/hashicorp/terraform/pull/1161#issuecomment-81847394","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/1161","id":81847394,"user":{"login":"catsby","id":61721,"avatar_url":"https://avatars.githubusercontent.com/u/61721?v=3","gravatar_id":"","url":"https://api.github.com/users/catsby","html_url":"https://github.com/catsby","followers_url":"https://api.github.com/users/catsby/followers","following_url":"https://api.github.com/users/catsby/following{/other_user}","gists_url":"https://api.github.com/users/catsby/gists{/gist_id}","starred_url":"https://api.github.com/users/catsby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catsby/subscriptions","organizations_url":"https://api.github.com/users/catsby/orgs","repos_url":"https://api.github.com/users/catsby/repos","events_url":"https://api.github.com/users/catsby/events{/privacy}","received_events_url":"https://api.github.com/users/catsby/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T18:06:09Z","updated_at":"2015-03-16T18:06:09Z","body":"Looking into the code more, I noticed that, if without hitting an error, the refresh func will always return a state of `ready` (the string) instead of the actual state it found, which I think is a bug. \r\n\r\n- https://github.com/hashicorp/terraform/blob/master/builtin/providers/aws/resource_aws_vpc_peering_connection.go#L150\r\n\r\nThe AWS docs aren't terribly clear (from what I saw) as the the actual valid states, so I'm _assuming_ the target state should really be our `pending-acceptance`, right? "}}