turbot/alicloud_insights

Query: ecs_instance_by_deletion_protection

Usage

powerpipe query alicloud_insights.query.ecs_instance_by_deletion_protection

Steampipe Tables

SQL

with instances as (
select
case
when deletion_protection then 'enabled'
else 'disabled'
end as state
from
alicloud_ecs_instance
)
select
state,
count(*)
from
instances
group by
state;

Dashboards

The query is used in the dashboards: