Skip to content

Commit 9163310

Browse files
authored
feat: Allow setting vpc endpoints as an input for each endpoint (#1056)
1 parent 878b5d2 commit 9163310

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
@@ -24,7 +24,7 @@ resource "aws_vpc_endpoint" "this" {
2424
for_each = local.endpoints
2525

2626
vpc_id = var.vpc_id
27-
service_name = data.aws_vpc_endpoint_service.this[each.key].service_name
27+
service_name = try(each.value.service_endpoint, data.aws_vpc_endpoint_service.this[each.key].service_name)
2828
vpc_endpoint_type = try(each.value.service_type, "Interface")
2929
auto_accept = try(each.value.auto_accept, null)
3030

0 commit comments

Comments
 (0)