Skip to content

Commit

Permalink
Merge pull request #47 from DNXLabs/fix/endpoint_try
Browse files Browse the repository at this point in the history
fix endpoint allowed cidrs try
  • Loading branch information
Renatovnctavares authored Jul 13, 2023
2 parents b4a1984 + ab4eb1b commit 49b281f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vpc-endpoints.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ resource "aws_security_group" "vpc_endpoints" {
from_port = 0
to_port = 0
protocol = "-1"
cidr_blocks = concat([var.vpc_cidr], try(each.value.allowed_cidrs, []))
cidr_blocks = try(concat([var.vpc_cidr], each.value.allowed_cidrs), [var.vpc_cidr])
}

tags = {
Expand Down

0 comments on commit 49b281f

Please sign in to comment.