turbot/aws_compliance

Query: vpc_subnet_auto_assign_public_ip_disabled

Usage

powerpipe query aws_compliance.query.vpc_subnet_auto_assign_public_ip_disabled

Steampipe Tables

SQL

select
subnet_id as resource,
case
when map_public_ip_on_launch = 'false' then 'ok'
else 'alarm'
end as status,
case
when map_public_ip_on_launch = 'false' then title || ' auto assign public IP disabled.'
else title || ' auto assign public IP enabled.'
end as reason
, region, account_id
from
aws_vpc_subnet;

Controls

The query is being used by the following controls: