Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit a1b6e81

Browse files
authored
Merge pull request #101 from dippynark/fix-existing-vpc-docs
Fix existing VPC docs
2 parents fa10df8 + 153a40e commit a1b6e81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/existing-vpc.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,10 @@ For example, if we have the following infrastructure (notation in terraform)::
6262
}
6363

6464
resource "aws_nat_gateway" "main" {
65+
count = "${length(aws_subnet.public)}"
6566
depends_on = ["aws_internet_gateway.main"]
6667
allocation_id = "${aws_eip.nat.id}"
67-
subnet_id = "${aws_subnet.public.1.id}"
68+
subnet_id = "${aws_subnet.public.*.id[count.index]}"
6869
}
6970

7071
resource "aws_route_table" "public" {

0 commit comments

Comments
 (0)