From dc996b5fafca47fdaf7e53a0ca77ad051eb18bd8 Mon Sep 17 00:00:00 2001 From: badra001 Date: Thu, 20 Nov 2025 09:49:06 -0500 Subject: [PATCH] fix --- custom/custom.tf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/custom/custom.tf b/custom/custom.tf index 4f20628..e36137e 100644 --- a/custom/custom.tf +++ b/custom/custom.tf @@ -73,11 +73,11 @@ resource "aws_security_group" "this_security_group" { for_each = local.ingress_sg iterator = sg content { - description = "${local.short_description}: ${local.ingress_sg_names[sg.value]}" + description = "${local.short_description}: ${local.ingress_sg_names[sg.key]}" from_port = 0 to_port = 0 protocol = -1 - security_groups = [sg.value] + security_groups = [sg.key] } } @@ -154,11 +154,11 @@ resource "aws_security_group" "this_security_group" { for_each = local.egress_sg iterator = sg content { - description = "${local.short_description}: ${local.egress_sg_names[sg]}" + description = "${local.short_description}: ${local.egress_sg_names[sg.key]}" from_port = 0 to_port = 0 protocol = -1 - security_groups = [sg] + security_groups = [sg.key] } }