Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Dec 9, 2024
1 parent 0a1d9d7 commit 0623ad0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rds-postgres/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ resource "aws_security_group" "this_security_group" {

# ingresss external port list (list + vpc if enabaled)
dynamic "ingress" {
for_each = (var.ingress_networks != null && length(var.ingress_networks) > 0) ? local.port_map["external"] : toset([])
for_each = (var.ingress_networks != null && length(local.ingress_networks) > 0) ? local.port_map["external"] : toset([])
iterator = p
content {
description = "${local.short_description}: ${p.value["description"]}"
Expand Down Expand Up @@ -125,6 +125,7 @@ resource "aws_security_group" "this_security_group" {


# egress all
# for_each = (var.egress_networks != null && length(local.egress_networks) > 0) ? local.port_map["external"] : toset([])
egress {
description = "${local.short_description}: All"
from_port = 0
Expand Down

0 comments on commit 0623ad0

Please sign in to comment.