From 258ac53f9e267ebfc2d0dfda825974c4fc63bcfd Mon Sep 17 00:00:00 2001 From: badra001 Date: Thu, 20 Nov 2025 09:52:49 -0500 Subject: [PATCH] fix --- custom/custom.tf | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/custom/custom.tf b/custom/custom.tf index e36137e..d74da10 100644 --- a/custom/custom.tf +++ b/custom/custom.tf @@ -70,10 +70,11 @@ resource "aws_security_group" "this_security_group" { # ingress security group ids (all) dynamic "ingress" { - for_each = local.ingress_sg + # for_each = local.ingress_sg + for_each = local.ingress_sg_names iterator = sg content { - description = "${local.short_description}: ${local.ingress_sg_names[sg.key]}" + description = "${local.short_description}: ${sg.value}" from_port = 0 to_port = 0 protocol = -1 @@ -151,10 +152,11 @@ resource "aws_security_group" "this_security_group" { # egress security group ids (all) dynamic "egress" { - for_each = local.egress_sg + # for_each = local.egress_sg + for_each = local.egress_sg_names iterator = sg content { - description = "${local.short_description}: ${local.egress_sg_names[sg.key]}" + description = "${local.short_description}: ${sg.value}" from_port = 0 to_port = 0 protocol = -1