{"action":"opened","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/4499","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/4499/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/4499/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/4499/events","html_url":"https://github.com/hashicorp/terraform/issues/4499","id":124840291,"number":4499,"title":"aws_nat_gateway breaks aws_route_table in regions with no NAT Gateway support.","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/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":0,"created_at":"2016-01-04T21:10:31Z","updated_at":"2016-01-04T21:10:31Z","closed_at":null,"body":"Adding `aws_nat_gateway` breaks `aws_route_table` resources in regions that doesn't support  NAT Gateways yet (such as `eu-central`).\r\n\r\nThe API gives an error:\r\n\r\n```\r\naws_route_table.main: InvalidParameter: NatGatewayId is not a valid parameter.\r\n\tstatus code: 400, request id:\r\n```\r\n\r\nResource:\r\n\r\n```\r\nresource \"aws_route_table\" \"main\" {\r\n  vpc_id = \"${aws_vpc.vpc.id}\"\r\n  route {\r\n    cidr_block = \"0.0.0.0/0\"\r\n    gateway_id = \"${aws_internet_gateway.gateway.id}\"\r\n  }\r\n}\r\n```\r\n\r\nSetting the `NatGatewayId` to `nil` in the API call input struct should rectify this. Thanks to @odise for catching this one in #4381."}}