turbot/aws_insights

Query: ec2_instance_by_public_ip

Usage

powerpipe query aws_insights.query.ec2_instance_by_public_ip

Steampipe Tables

SQL

with instances as (
select
case
when public_ip_address is null then 'private'
else 'public'
end as visibility
from
aws_ec2_instance
)
select
visibility,
count(*)
from
instances
group by
visibility

Dashboards

The query is used in the dashboards: