{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/4381","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/4381/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/4381/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/4381/events","html_url":"https://github.com/hashicorp/terraform/pull/4381","id":122895926,"number":4381,"title":"provider/aws: Support for aws_nat_gateway","user":{"login":"jen20","id":548524,"avatar_url":"https://avatars.githubusercontent.com/u/548524?v=3","gravatar_id":"","url":"https://api.github.com/users/jen20","html_url":"https://github.com/jen20","followers_url":"https://api.github.com/users/jen20/followers","following_url":"https://api.github.com/users/jen20/following{/other_user}","gists_url":"https://api.github.com/users/jen20/gists{/gist_id}","starred_url":"https://api.github.com/users/jen20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jen20/subscriptions","organizations_url":"https://api.github.com/users/jen20/orgs","repos_url":"https://api.github.com/users/jen20/repos","events_url":"https://api.github.com/users/jen20/events{/privacy}","received_events_url":"https://api.github.com/users/jen20/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":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-18T07:22:12Z","updated_at":"2015-12-18T21:09:09Z","closed_at":"2015-12-18T21:00:42Z","pull_request":{"url":"https://api.github.com/repos/hashicorp/terraform/pulls/4381","html_url":"https://github.com/hashicorp/terraform/pull/4381","diff_url":"https://github.com/hashicorp/terraform/pull/4381.diff","patch_url":"https://github.com/hashicorp/terraform/pull/4381.patch"},"body":"This still needs acceptance tests and documentation. It is also unclear as to the situations where multiple addresses may be present, and whether Terraform needs to account for that.\r\n\r\nExample usage:\r\n\r\n```hcl\r\nprovider \"aws\" {\r\n    region = \"us-west-2\"\r\n}\r\n\r\nresource \"aws_vpc\" \"test\" {\r\n    cidr_block = \"10.0.0.0/16\"\r\n}\r\n\r\nresource \"aws_subnet\" \"private\" {\r\n    vpc_id = \"${aws_vpc.test.id}\"\r\n    cidr_block = \"10.0.1.0/24\"\r\n    map_public_ip_on_launch = false\r\n}\r\n\r\nresource \"aws_internet_gateway\" \"gw\" {\r\n    vpc_id = \"${aws_vpc.test.id}\"\r\n}\r\n\r\nresource \"aws_eip\" \"nat_gateway\" {\r\n    vpc = true\r\n}\r\n\r\nresource \"aws_nat_gateway\" \"gateway\" {\r\n    allocation_id = \"${aws_eip.nat_gateway.id}\"\r\n    subnet_id = \"${aws_subnet.private.id}\"\r\n}\r\n\r\noutput \"vpc_id\" {\r\n    value = \"${aws_vpc.test.id}\"\r\n}\r\n\r\noutput \"subnet_id\" {\r\n    value = \"${aws_subnet.private.id}\"\r\n}\r\n\r\noutput \"igw_id\" {\r\n    value = \"${aws_internet_gateway.gw.id}\"\r\n}\r\n\r\noutput \"eip_id\" {\r\n    value = \"${aws_eip.nat_gateway.id}\"\r\n}\r\n\r\noutput \"nat_public_ip\" {\r\n    value = \"${aws_nat_gateway.gateway.public_ip}\"\r\n}\r\n\r\noutput \"nat_private_ip\" {\r\n    value = \"${aws_nat_gateway.gateway.private_ip}\"\r\n}\r\n\r\noutput \"nat_nic_id\" {\r\n    value = \"${aws_nat_gateway.gateway.network_interface_id}\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/165898239","html_url":"https://github.com/hashicorp/terraform/pull/4381#issuecomment-165898239","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/4381","id":165898239,"user":{"login":"gosuri","id":70293,"avatar_url":"https://avatars.githubusercontent.com/u/70293?v=3","gravatar_id":"","url":"https://api.github.com/users/gosuri","html_url":"https://github.com/gosuri","followers_url":"https://api.github.com/users/gosuri/followers","following_url":"https://api.github.com/users/gosuri/following{/other_user}","gists_url":"https://api.github.com/users/gosuri/gists{/gist_id}","starred_url":"https://api.github.com/users/gosuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gosuri/subscriptions","organizations_url":"https://api.github.com/users/gosuri/orgs","repos_url":"https://api.github.com/users/gosuri/repos","events_url":"https://api.github.com/users/gosuri/events{/privacy}","received_events_url":"https://api.github.com/users/gosuri/received_events","type":"User","site_admin":false},"created_at":"2015-12-18T21:09:09Z","updated_at":"2015-12-18T21:09:09Z","body":":+1: Insane turnaround"}}