Skip to content

Commit

Permalink
fix: we forgot to change a refernce to the trusted attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
gambol99 committed Oct 7, 2024
1 parent 8fd14a9 commit 2c68f77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trusted.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ resource "aws_ec2_transit_gateway_route_table_propagation" "trusted" {
## routing table. This will allow traffic to flow from the untrusted routing table
## to the trusted routing table.
resource "aws_ec2_transit_gateway_route_table_propagation" "untrusted" {
for_each = local.enable_trusted == true ? toset(var.connectivity_config.trusted.trusted_attachments) : toset([])
for_each = local.enable_trusted == true ? var.connectivity_config.trusted.trusted_attachments : {}

transit_gateway_attachment_id = each.value
transit_gateway_route_table_id = module.tgw.ec2_transit_gateway_association_default_route_table_id
Expand Down

0 comments on commit 2c68f77

Please sign in to comment.