turbot/alicloud_insights

Query: ecs_disks_for_ecs_instance

Usage

powerpipe query alicloud_insights.query.ecs_disks_for_ecs_instance

SQL

select
d.arn as disk_arn
from
alicloud_ecs_instance i
left join alicloud_ecs_disk as d on i.instance_id = d.instance_id
where
i.arn = $1
and i.account_id = split_part($1, ':', 5)
and i.region = split_part($1, ':', 4);