diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 5e2eb65..57d6c99 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -65,6 +65,9 @@ module "tgw" { destination_cidr_block = "10.10.10.10/32" } ] + tags = { + Name = "${local.name}-vpc2" + } }, } diff --git a/main.tf b/main.tf index 600e26e..411c6b3 100644 --- a/main.tf +++ b/main.tf @@ -79,6 +79,7 @@ resource "aws_ec2_transit_gateway_vpc_attachment" "this" { var.tags, { Name = var.name }, var.tgw_vpc_attachment_tags, + try(each.value.tags, {}), ) }