Skip to content

Commit

Permalink
Merge pull request #12 from michalschott/master
Browse files Browse the repository at this point in the history
NAT gateway should be tagged too.
  • Loading branch information
antonbabenko authored Oct 20, 2017
2 parents d6f1342 + 61eeada commit c5c4155
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ resource "aws_nat_gateway" "this" {
allocation_id = "${element(aws_eip.nat.*.id, (var.single_nat_gateway ? 0 : count.index))}"
subnet_id = "${element(aws_subnet.public.*.id, (var.single_nat_gateway ? 0 : count.index))}"

tags = "${merge(var.tags, map("Name", format("%s", var.name)))}"

depends_on = ["aws_internet_gateway.this"]
}

Expand Down

0 comments on commit c5c4155

Please sign in to comment.