From 51a2bc127207dd7b2df5b9ab0b05716e4234af6e Mon Sep 17 00:00:00 2001 From: Marvin Bertram Date: Tue, 17 Sep 2024 11:41:55 +0200 Subject: [PATCH 1/3] Add suffix for tgw attachments --- tgw.tf | 2 +- variables.tf | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) 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 784883797..406b71bbe 100644 --- a/variables.tf +++ b/variables.tf @@ -1766,6 +1766,18 @@ variable "tgw_subnet_suffix" { default = "tgw" } +variable "tgw_att_suffix" { + description = "Suffix to append to tgw attachment name" + type = string + default = "main" +} + +variable "" { + description = "Suffix to append to tgw subnets name" + type = string + default = "tgw" +} + variable "tgw_subnet_tags" { description = "Additional tags for the tgw subnets" type = map(string) From cff33289284c4e7f17a46c4f2526b4a8eaa08064 Mon Sep 17 00:00:00 2001 From: Marvin Bertram Date: Tue, 17 Sep 2024 11:45:18 +0200 Subject: [PATCH 2/3] Remove variable --- variables.tf | 6 ------ 1 file changed, 6 deletions(-) diff --git a/variables.tf b/variables.tf index 406b71bbe..8482dc57d 100644 --- a/variables.tf +++ b/variables.tf @@ -1772,12 +1772,6 @@ variable "tgw_att_suffix" { default = "main" } -variable "" { - description = "Suffix to append to tgw subnets name" - type = string - default = "tgw" -} - variable "tgw_subnet_tags" { description = "Additional tags for the tgw subnets" type = map(string) From 4274828d7cfa9a18cea92dcb3f721001ad9179f1 Mon Sep 17 00:00:00 2001 From: Marvin Bertram Date: Tue, 17 Sep 2024 11:46:33 +0200 Subject: [PATCH 3/3] Bump up version --- .spacelift/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.spacelift/config.yml b/.spacelift/config.yml index 8d8059b81..eae14d053 100644 --- a/.spacelift/config.yml +++ b/.spacelift/config.yml @@ -1,3 +1,3 @@ version: 1 -module_version: 0.3.0 \ No newline at end of file +module_version: 0.3.2