Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Sep 15, 2021
1 parent 9c6fefb commit c80b86f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ resource "aws_security_group" "this_security_group" {
from_port = p.value["from"]
to_port = p.value["to"]
protocol = p.value["proto"]
cidr_blocks = length(p.value["cidr"]) == 0 ? flatten(compress(concat(local.external_ingress_networks, var.ingress_networks))) : flatten(compress(concat(p.value["cidr"], var.ingress_networks)))
cidr_blocks = length(p.value["cidr"]) == 0 ? flatten(compact(concat(local.external_ingress_networks, var.ingress_networks))) : flatten(compress(concat(p.value["cidr"], var.ingress_networks)))
}
}

Expand Down Expand Up @@ -103,7 +103,7 @@ resource "aws_security_group" "this_security_group" {
from_port = 0
to_port = 0
protocol = -1
cidr_blocks = flatten(compress(concat(local.egress_networks, var.egress_networks)))
cidr_blocks = flatten(compact(concat(local.egress_networks, var.egress_networks)))
}

# egress security group ids (all)
Expand Down

0 comments on commit c80b86f

Please sign in to comment.