From b5ac8590ff1ed0a412b2aed5a1dd35fdba7dc241 Mon Sep 17 00:00:00 2001 From: Rohith Jayawardene Date: Mon, 7 Oct 2024 18:25:28 +0100 Subject: [PATCH] fix: updating the reference to the variable, now a map not a list --- trusted.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trusted.tf b/trusted.tf index 3fba1b9..66b0766 100644 --- a/trusted.tf +++ b/trusted.tf @@ -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