turbot/alicloud_insights

Query: target_ecs_snapshots_for_ecs_disk

Usage

powerpipe query alicloud_insights.query.target_ecs_snapshots_for_ecs_disk

SQL

select
s.arn as snapshot_arn
from
alicloud_ecs_snapshot s
left join alicloud_ecs_disk as d on s.source_disk_id = d.disk_id
where
d.account_id = split_part($1, ':', 5)
and d.region = split_part($1, ':', 4)
and d.arn = $1
and s.arn is not null;