Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Oct 25, 2021
1 parent 0a6294a commit cab52bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ locals {
external_ingress_networks = compact(concat(local.vpc_networks, local.ingress_networks))
ingress_sg_names = zipmap(var.ingress_security_groups, data.aws_security_group.ingress_security_groups[*].name)
egress_sg_names = zipmap(var.egress_security_groups, data.aws_security_group.egress_security_groups[*].name)
self = var.enable_self ? local.self_ports : []
# self = var.enable_self ? local.self_ports : []
}

resource "aws_security_group" "this_security_group" {
Expand Down Expand Up @@ -39,7 +39,7 @@ resource "aws_security_group" "this_security_group" {

# ingress self (list with one or zero items)
dynamic "ingress" {
for_each = local.self_port_map
for_each = var.enable_self ? local.self_port_map : {}
iterator = sg
content {
description = "${local.short_description}: self ${sg.value["description"]}"
Expand Down

0 comments on commit cab52bc

Please sign in to comment.