From d0bacb0f55a9126593b6f20be0bedd3f5a5b118b Mon Sep 17 00:00:00 2001 From: badra001 Date: Wed, 19 Jan 2022 09:45:48 -0500 Subject: [PATCH] change vpc-endpoint-type to service-type (aws docs wrong) --- vpc-interface-endpoint/main.tf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"] } }