Skip to content

Commit

Permalink
feat: Added tags per VPC attachment (#103)
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Babenko <anton@antonbabenko.com>
  • Loading branch information
l13t and antonbabenko committed Feb 27, 2023
1 parent 74890e0 commit e4d6df2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/complete/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ module "tgw" {
destination_cidr_block = "10.10.10.10/32"
}
]
tags = {
Name = "${local.name}-vpc2"
}
},
}

Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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, {}),
)
}

Expand Down

0 comments on commit e4d6df2

Please sign in to comment.