Skip to content

Commit

Permalink
fix: updating the reference to the variable, now a map not a list
Browse files Browse the repository at this point in the history
  • Loading branch information
gambol99 committed Oct 7, 2024
1 parent 2c68f77 commit b5ac859
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 @@ -19,7 +19,7 @@ resource "aws_ec2_transit_gateway_route_table" "trusted_core" {

## Associate the trusted attachments with the trusted routing table.
resource "aws_ec2_transit_gateway_route_table_association" "trusted" {
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 : {}

replace_existing_association = true
transit_gateway_attachment_id = each.value
Expand Down

0 comments on commit b5ac859

Please sign in to comment.