Skip to content

Commit e342cc1

Browse files
author
Micah Huber
committed
Add global_tags to elastic ips & nat gateways.
1 parent cd96d45 commit e342cc1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

eip.tf

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
resource "aws_eip" "mod_nat" {
1616
count = "${((var.multi_az_nat_gateway * var.az_count) + (var.single_nat_gateway * 1))}"
17+
tags = "${var.global_tags}"
1718
vpc = true
1819
}
1920

nat-gateway.tf

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ resource "aws_nat_gateway" "nat_gateway" {
1616
count = "${((var.multi_az_nat_gateway * var.az_count) + (var.single_nat_gateway * 1))}"
1717
subnet_id = "${element(aws_subnet.public.*.id, count.index)}"
1818
allocation_id = "${element(aws_eip.mod_nat.*.id, count.index)}"
19+
tags = "${var.global_tags}"
1920
depends_on = ["aws_internet_gateway.default","aws_eip.mod_nat","aws_subnet.public"]
2021
lifecycle = {
2122
ignore_changes = ["tags"]

0 commit comments

Comments
 (0)