turbot/alicloud_insights

Query: ecs_instance_public_access_table

Usage

powerpipe query alicloud_insights.query.ecs_instance_public_access_table

SQL

select
i.instance_id as "Instance ID",
i.tags ->> 'Name' as "Name",
case when public_ip_address is null then 'Private' else 'Public' end as "Public/Private",
i.public_ip_address as "Public IP Address",
a.title as "Account",
i.account_id as "Account ID",
i.region as "Region",
i.arn as "ARN"
from
alicloud_ecs_instance as i,
alicloud_account as a
where
i.account_id = a.account_id
order by
i.instance_id;

Dashboards

The query is used in the dashboards: