Skip to content

Commit fd98462

Browse files
authored
feat: Add support for tagging egress only internet gateway (#430)
1 parent 639fe65 commit fd98462

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

main.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@ resource "aws_egress_only_internet_gateway" "this" {
106106
count = var.create_vpc && var.enable_ipv6 && local.max_subnet_length > 0 ? 1 : 0
107107

108108
vpc_id = local.vpc_id
109+
110+
tags = merge(
111+
{
112+
"Name" = format("%s", var.name)
113+
},
114+
var.tags,
115+
var.igw_tags,
116+
)
109117
}
110118

111119
################

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ terraform {
22
required_version = ">= 0.12.6, < 0.14"
33

44
required_providers {
5-
aws = "~> 2.53"
5+
aws = "~> 2.57"
66
}
77
}

0 commit comments

Comments
 (0)