{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/6843","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/6843/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/6843/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/6843/events","html_url":"https://github.com/hashicorp/terraform/pull/6843","id":156381399,"number":6843,"title":"[WIP] provider/aws: Implementing `vpc_peering_connection_accept`","user":{"login":"BSick7","id":830878,"avatar_url":"https://avatars.githubusercontent.com/u/830878?v=3","gravatar_id":"","url":"https://api.github.com/users/BSick7","html_url":"https://github.com/BSick7","followers_url":"https://api.github.com/users/BSick7/followers","following_url":"https://api.github.com/users/BSick7/following{/other_user}","gists_url":"https://api.github.com/users/BSick7/gists{/gist_id}","starred_url":"https://api.github.com/users/BSick7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BSick7/subscriptions","organizations_url":"https://api.github.com/users/BSick7/orgs","repos_url":"https://api.github.com/users/BSick7/repos","events_url":"https://api.github.com/users/BSick7/events{/privacy}","received_events_url":"https://api.github.com/users/BSick7/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":5,"created_at":"2016-05-23T22:31:23Z","updated_at":"2016-05-24T19:00:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hashicorp/terraform/pulls/6843","html_url":"https://github.com/hashicorp/terraform/pull/6843","diff_url":"https://github.com/hashicorp/terraform/pull/6843.diff","patch_url":"https://github.com/hashicorp/terraform/pull/6843.patch"},"body":"## Problem\r\n\r\nCurrently `aws_vpc_peering_connection` provides a way to `auto_accept` a peering connection.  This works great until you have a peering connection between 2 VPCs that are in different aws accounts.\r\n\r\n## Solution\r\n\r\n```\r\nresource \"aws_vpc_peering_connection\" \"peer1\" {\r\n  // use peering connection like normal\r\n  auto_accept = false\r\n}\r\n\r\nprovider \"aws\" {\r\n  alias = \"other\"\r\n  // other account credentials\r\n}\r\n\r\nresource \"aws_vpc_peering_connection_accept\" \"peer1\" {\r\n  peering_connection_id = \"${aws_vpc_peering_connection.peer1.id}\"\r\n\r\n  provider = \"aws.other\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/221370243","html_url":"https://github.com/hashicorp/terraform/pull/6843#issuecomment-221370243","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/6843","id":221370243,"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":"2016-05-24T19:00:45Z","updated_at":"2016-05-24T19:00:45Z","body":"Ah, I see.. so we solve this with the current resource with `auto_accept`, but that requires you be the owner of both VPCs, which you're saying we can't really rely on that being the case, yeah?"}}
{"actor":{"display_login":"catsby"}}