Skip to content

Commit 651b70c

Browse files
committed
Make it so we can pass service_region=null to the VPC endpoint module
1 parent 8d6eba2 commit 651b70c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/vpc-endpoints/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ data "aws_vpc_endpoint_service" "this" {
1313

1414
service = try(each.value.service, null)
1515
service_name = try(each.value.service_name, null)
16-
service_regions = try([each.value.service_region], null)
16+
service_regions = try(each.value.service_region != null ? [each.value.service_region] : null, null)
1717

1818
filter {
1919
name = "service-type"

0 commit comments

Comments
 (0)