turbot/alicloud_insights

Query: ecs_instance_by_public_ip

Usage

powerpipe query alicloud_insights.query.ecs_instance_by_public_ip

Steampipe Tables

SQL

with instances as (
select
case
when jsonb_array_length(public_ip_address) = 0 then 'private'
else 'public'
end as state
from
alicloud_ecs_instance
)
select
state,
count(*)
from
instances
group by
state;

Dashboards

The query is used in the dashboards: