Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Nov 20, 2025
1 parent dc996b5 commit 258ac53
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions custom/custom.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 258ac53

Please sign in to comment.