Commit c5c41556 authored by Anton Babenko's avatar Anton Babenko Committed by GitHub

Merge pull request #12 from michalschott/master

NAT gateway should be tagged too.
parents d6f1342a 61eeadad
......@@ -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