turbot/aws_insights

Query: ec2_public_instance_count

Usage

powerpipe query aws_insights.query.ec2_public_instance_count

Steampipe Tables

SQL

select
count(*) as value,
'Publicly Accessible' as label,
case count(*) when 0 then 'ok' else 'alert' end as "type"
from
aws_ec2_instance
where
public_ip_address is not null

Dashboards

The query is used in the dashboards: