Skip to content

Commit 49b281f

Browse files
Merge pull request #47 from DNXLabs/fix/endpoint_try
fix endpoint allowed cidrs try
2 parents b4a1984 + ab4eb1b commit 49b281f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpc-endpoints.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ resource "aws_security_group" "vpc_endpoints" {
3636
from_port = 0
3737
to_port = 0
3838
protocol = "-1"
39-
cidr_blocks = concat([var.vpc_cidr], try(each.value.allowed_cidrs, []))
39+
cidr_blocks = try(concat([var.vpc_cidr], each.value.allowed_cidrs), [var.vpc_cidr])
4040
}
4141

4242
tags = {

0 commit comments

Comments
 (0)