I am creating an AWS VPC Endpoint to connect to an interface type of service.I am using this code for it.
resource "aws_vpc_endpoint" "endpoints" {
for_each = var.custom_endpoint_services
vpc_id = data.aws_vpc.current_vpc.id
service_name = each.value.service_name
vpc_endpoint_type = "Interface"
security_group_ids = [
aws_security_group.endpoints-sg.id
]
tags = merge(var.tags, {
"Name" = each.key
})
}
Now as you can see i am not using any subnets.But still the endpoint gets created and is shown as available endpoint connections in the endpoint service.How is this possible?