Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Aug 26, 2025
1 parent 9c454ce commit 16a1e5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom/custom.tf
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ resource "aws_security_group" "this_security_group" {

# inress with prefix lists
dynamic "ingress" {
for_each = length(var.ingress_prefix_list_names) && length(var.ingress_prefix_list_ports) > 0 ? toset(var.ingress_prefix_list_ports) : toset([])
for_each = length(var.ingress_prefix_list_names) > 0 && length(var.ingress_prefix_list_ports) > 0 ? toset(var.ingress_prefix_list_ports) : toset([])
iterator = p
content {
description = try(p.value.label, local.short_description)
Expand Down Expand Up @@ -162,7 +162,7 @@ resource "aws_security_group" "this_security_group" {

# egress with prefix lists
dynamic "egress" {
for_each = length(var.egress_prefix_list_names) && length(var.egress_prefix_list_ports) > 0 ? toset(var.egress_prefix_list_ports) : toset([])
for_each = length(var.egress_prefix_list_names) > 0 && length(var.egress_prefix_list_ports) > 0 ? toset(var.egress_prefix_list_ports) : toset([])
iterator = p
content {
description = try(p.value.label, local.short_description)
Expand Down

0 comments on commit 16a1e5a

Please sign in to comment.