Commit 9163310d authored by Zack A's avatar Zack A Committed by GitHub

feat: Allow setting vpc endpoints as an input for each endpoint (#1056)

parent 878b5d2e
...@@ -24,7 +24,7 @@ resource "aws_vpc_endpoint" "this" { ...@@ -24,7 +24,7 @@ resource "aws_vpc_endpoint" "this" {
for_each = local.endpoints for_each = local.endpoints
vpc_id = var.vpc_id vpc_id = var.vpc_id
service_name = data.aws_vpc_endpoint_service.this[each.key].service_name service_name = try(each.value.service_endpoint, data.aws_vpc_endpoint_service.this[each.key].service_name)
vpc_endpoint_type = try(each.value.service_type, "Interface") vpc_endpoint_type = try(each.value.service_type, "Interface")
auto_accept = try(each.value.auto_accept, null) auto_accept = try(each.value.auto_accept, null)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment