turbot/aws_compliance

Query: ec2_instance_not_publicly_accessible

Usage

powerpipe query aws_compliance.query.ec2_instance_not_publicly_accessible

Steampipe Tables

SQL

select
arn as resource,
case
when public_ip_address is null then 'ok'
else 'alarm'
end as status,
case
when public_ip_address is null then instance_id || ' not publicly accessible.'
else instance_id || ' publicly accessible.'
end as reason
, region, account_id
from
aws_ec2_instance;

Controls

The query is being used by the following controls: