turbot/gcp_insights

Query: compute_instance_deletion_protection_status

Usage

powerpipe query gcp_insights.query.compute_instance_deletion_protection_status

Steampipe Tables

SQL

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

Dashboards

The query is used in the dashboards: