turbot/alicloud_insights

Query: ecs_instance_public_access

Usage

powerpipe query alicloud_insights.query.ecs_instance_public_access

Steampipe Tables

SQL

select
'Public Access' as label,
case when public_ip_address is null then 'Disabled' else 'Enabled' end as value,
case when public_ip_address is null then 'ok' else 'alert' end as type
from
alicloud_ecs_instance
where
arn = $1
and account_id = split_part($1, ':', 5)
and region = split_part($1, ':', 4);

Dashboards

The query is used in the dashboards: