From 2c68f7739f2c9334e75a240abc9c08f51177a337 Mon Sep 17 00:00:00 2001 From: Rohith Jayawardene Date: Mon, 7 Oct 2024 18:17:46 +0100 Subject: [PATCH] fix: we forgot to change a refernce to the trusted attachments --- trusted.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trusted.tf b/trusted.tf index e970f47..3fba1b9 100644 --- a/trusted.tf +++ b/trusted.tf @@ -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