turbot/steampipe-mod-aws-compliance

Query: vpc_block_public_access_restrict_internet_gateway_traffic

Usage

powerpipe query aws_compliance.query.vpc_block_public_access_restrict_internet_gateway_traffic

SQL

select
'arn:' || partition || '::' || region || ':' || account_id as resource,
case
when internet_gateway_block_mode in ('block-bidirectional', 'block-ingress') then 'ok'
else 'alarm'
end as status,
case
when internet_gateway_block_mode in ('block-bidirectional', 'block-ingress') then title || ' restricts internet gateway traffic.'
else title || ' allows internet gateway traffic.'
end as reason
, region, account_id
from
aws_vpc_block_public_access_options;

Controls

The query is being used by the following controls: