turbot/alicloud_insights

Query: ecs_snapshot_by_usage

Usage

powerpipe query alicloud_insights.query.ecs_snapshot_by_usage

Steampipe Tables

SQL

select
snapshot_usage,
count(*) as "Snapshots"
from (
select usage,
case when usage = 'none' then
'unused'
else
'in-use'
end snapshot_usage
from
alicloud_ecs_snapshot) as t
group by
snapshot_usage
order by
snapshot_usage;

Dashboards

The query is used in the dashboards: