turbot/aws_compliance

Query: ec2_ami_restrict_public_access

Usage

powerpipe query aws_compliance.query.ec2_ami_restrict_public_access

Steampipe Tables

SQL

select
'arn:' || partition || ':ec2:' || region || ':' || account_id || ':image/' || image_id as resource,
case
when public then 'alarm'
else 'ok'
end status,
case
when public then title || ' publicly accessible.'
else title || ' not publicly accessible.'
end reason,
region,
account_id
from
aws_ec2_ami;

Controls

The query is being used by the following controls: