turbot/gcp_insights

Query: compute_instance_shielded_vm_status

Usage

powerpipe query gcp_insights.query.compute_instance_shielded_vm_status

Steampipe Tables

SQL

with instances as (
select
case
when shielded_instance_config @> '{"enableVtpm": true, "enableIntegrityMonitoring": true}' then 'enabled'
else 'disabled'
end as shielded_vm_status
from
gcp_compute_instance
)
select
shielded_vm_status,
count(*)
from
instances
group by
shielded_vm_status;

Dashboards

The query is used in the dashboards: