diff --git a/rds-postgres/main.tf b/rds-postgres/main.tf index 1e8a814..a247239 100644 --- a/rds-postgres/main.tf +++ b/rds-postgres/main.tf @@ -113,7 +113,7 @@ resource "aws_security_group" "this_security_group" { # ingress self (list with one or zero items) dynamic "ingress" { for_each = var.enable_self ? local.port_map["external"] : toset([]) - iterator = sg + iterator = p content { description = "${local.short_description}: ${p.value["description"]}" from_port = p.value["from"]