Skip to content

Commit 76ba525

Browse files
feat: Support non-AWS endpoint services
1 parent 573f574 commit 76ba525

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
@@ -12,7 +12,7 @@ data "aws_vpc_endpoint_service" "this" {
1212
for_each = local.endpoints
1313

1414
service = try(each.value.service, null)
15-
service_name = try(each.value.service_name, null)
15+
service_name = lookup(each.value, "service_endpoint", lookup(each.value, "service_name", null))
1616

1717
filter {
1818
name = "service-type"

0 commit comments

Comments
 (0)