Commit 61eeadad authored by Michal Schott's avatar Michal Schott

NAT gateway should be tagged too.

parent d6f1342a
......@@ -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"]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment