diff --git a/aws/table_aws_vpc_endpoint.go b/aws/table_aws_vpc_endpoint.go index 9cbfb256c..ac75e1971 100644 --- a/aws/table_aws_vpc_endpoint.go +++ b/aws/table_aws_vpc_endpoint.go @@ -57,6 +57,11 @@ func tableAwsVpcEndpoint(_ context.Context) *plugin.Table { Description: "The ID of the VPC to which the endpoint is associated.", Type: proto.ColumnType_STRING, }, + { + Name: "vpc_endpoint_type", + Description: "The type of endpoint.", + Type: proto.ColumnType_STRING, + }, { Name: "state", Description: "The state of the VPC endpoint.", diff --git a/docs/tables/aws_vpc_endpoint.md b/docs/tables/aws_vpc_endpoint.md index 4a5fb8a4f..8009e87af 100644 --- a/docs/tables/aws_vpc_endpoint.md +++ b/docs/tables/aws_vpc_endpoint.md @@ -15,7 +15,6 @@ from aws_vpc_endpoint; ``` - ### Subnet Id count for each VPC endpoints ```sql @@ -26,7 +25,6 @@ from aws_vpc_endpoint; ``` - ### Network details for each VPC endpoint ```sql @@ -42,7 +40,6 @@ from cross join jsonb_array_elements(groups) as sg; ``` - ### DNS information for the VPC endpoints ```sql @@ -56,7 +53,6 @@ from cross join jsonb_array_elements(dns_entries) as dns; ``` - ### VPC endpoint count by VPC ID ```sql @@ -67,4 +63,30 @@ from aws_vpc_endpoint group by vpc_id; +``` + +### Count endpoints by endpoint type + +```sql +select + vpc_endpoint_type, + count(vpc_endpoint_id) +from + aws_vpc_endpoint +group by + vpc_endpoint_type; +``` + +### List 'interface' type VPC Endpoints + +```sql +select + vpc_endpoint_id, + service_name, + vpc_id, + vpc_endpoint_type +from + aws_vpc_endpoint +where + vpc_endpoint_type = 'Interface'; ``` \ No newline at end of file