From 9769cb89230ce74d5b5ddc69954b48e4083f8ad2 Mon Sep 17 00:00:00 2001 From: badra001 Date: Mon, 9 Dec 2024 13:12:02 -0500 Subject: [PATCH] fix --- rds-postgres/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rds-postgres/main.tf b/rds-postgres/main.tf index bfee84d..b1f8443 100644 --- a/rds-postgres/main.tf +++ b/rds-postgres/main.tf @@ -68,7 +68,7 @@ resource "aws_security_group" "this_security_group" { # ingress with prefix lists dynamic "ingress" { - for_each = length(var.ingress_prefix_list_names) > 0 ? local.port_map["external"] : {} + for_each = length(var.ingress_prefix_list_names) > 0 ? local.port_map["external"] : toset([]) iterator = p content { description = "${local.short_description}: ${p.value["description"]}" @@ -132,7 +132,7 @@ resource "aws_security_group" "this_security_group" { # egress with prefix lists dynamic "egress" { - for_each = length(var.egress_prefix_list_names) > 0 ? local.port_map["external"] : {} + for_each = length(var.egress_prefix_list_names) > 0 ? local.port_map["external"] : toset([]) iterator = p content { description = "${local.short_description}: ${local.egress_sg_names[sg]}"