Skip to content

Commit

Permalink
Place NAT Gateways into public subnets (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
aknysh authored Aug 22, 2017
1 parent a52f912 commit 824f2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gws.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ resource "aws_eip" "default" {
resource "aws_nat_gateway" "default" {
count = "${length(var.availability_zones)}"
allocation_id = "${element(aws_eip.default.*.id, count.index)}"
subnet_id = "${element(aws_subnet.private.*.id, count.index)}"
subnet_id = "${element(aws_subnet.public.*.id, count.index)}"

lifecycle {
create_before_destroy = true
Expand Down

0 comments on commit 824f2e0

Please sign in to comment.