diff --git a/vpc-interface-endpoint/main.tf b/vpc-interface-endpoint/main.tf index edc3a8a..e15c218 100644 --- a/vpc-interface-endpoint/main.tf +++ b/vpc-interface-endpoint/main.tf @@ -55,10 +55,13 @@ locals { } } +# AWS docs say this is vpc-endpoint-type but the awscli says its service-type = Interface | Gateway +# https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_DescribeVpcEndpoints.html + data "aws_vpc_endpoint_service" "interface_endpoint" { service = local.service filter { - name = "vpc-endpoint-type" + name = "service-type" values = ["Interface"] } }