turbot/terraform_aws_compliance

Query: dynamodb_vpc_endpoint_routetable_association

Usage

powerpipe query terraform_aws_compliance.query.dynamodb_vpc_endpoint_routetable_association

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'service_name') like '%dynamodb%' and (attributes_std -> 'route_table_ids') is null then 'alarm'
when (attributes_std ->> 'service_name') like '%dynamodb%' and (attributes_std -> 'route_table_ids') is not null then 'ok'
else 'alarm'
end as status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'service_name') like '%dynamodb%' and (attributes_std -> 'route_table_ids') is null then ' VPC Endpoint for DynamoDB disabled'
when (attributes_std ->> 'service_name') like '%dynamodb%' and (attributes_std -> 'route_table_ids') is not null then ' VPC Endpoint for DynamoDB enabled'
else ' VPC Endpoint for DynamoDB disabled'
end || '.' as reason
, path || ':' || start_line
from
terraform_resource
where
type = 'aws_vpc_endpoint';

Controls

The query is being used by the following controls: