turbot/alicloud_insights

Query: ecs_instances_for_ecs_disk

Usage

powerpipe query alicloud_insights.query.ecs_instances_for_ecs_disk

SQL

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