Skip to content

Commit e4d6df2

Browse files
l13tantonbabenko
andauthored
feat: Added tags per VPC attachment (#103)
Co-authored-by: Anton Babenko <[email protected]>
1 parent 74890e0 commit e4d6df2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

examples/complete/main.tf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ module "tgw" {
6565
destination_cidr_block = "10.10.10.10/32"
6666
}
6767
]
68+
tags = {
69+
Name = "${local.name}-vpc2"
70+
}
6871
},
6972
}
7073

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ resource "aws_ec2_transit_gateway_vpc_attachment" "this" {
7979
var.tags,
8080
{ Name = var.name },
8181
var.tgw_vpc_attachment_tags,
82+
try(each.value.tags, {}),
8283
)
8384
}
8485

0 commit comments

Comments
 (0)