diff --git a/.spacelift/config.yml b/.spacelift/config.yml index e4bc0a968..eae14d053 100644 --- a/.spacelift/config.yml +++ b/.spacelift/config.yml @@ -1,3 +1,3 @@ version: 1 -module_version: 0.3.1 +module_version: 0.3.2 diff --git a/tgw.tf b/tgw.tf index 58424d9a2..6ae7b5244 100644 --- a/tgw.tf +++ b/tgw.tf @@ -149,7 +149,7 @@ resource "aws_ec2_transit_gateway_vpc_attachment" "tgw" { vpc_id = local.vpc_id tags = merge( - { Name = "${var.name_prefix}-${var.short_aws_region}-tgw-att" } + { Name = "${var.name_prefix}-${var.short_aws_region}-tgw-att-${var.tgw_att_suffix}" } ) } diff --git a/variables.tf b/variables.tf index 0683b9b08..6fb89a195 100644 --- a/variables.tf +++ b/variables.tf @@ -1766,6 +1766,12 @@ variable "tgw_subnet_suffix" { default = "tgw" } +variable "tgw_att_suffix" { + description = "Suffix to append to tgw attachment name" + type = string + default = "main" +} + variable "tgw_subnet_tags" { description = "Additional tags for the tgw subnets" type = map(string)