turbot/gcp_compliance

Query: compute_instance_preemptible_termination_disabled

Usage

powerpipe query gcp_compliance.query.compute_instance_preemptible_termination_disabled

Steampipe Tables

SQL

select
self_link resource,
case
when name like 'gke-%' then 'skip'
when scheduling ->> 'preemptible' = 'true' then 'alarm'
else 'ok'
end as status,
case
when name like 'gke-%' and labels ? 'goog-gke-node'
then title || ' created by GKE.'
when scheduling ->> 'preemptible' = 'true' then title || ' preemptible termination enabled.'
else title || ' preemptible termination disabled.'
end as reason
, location as location, project as project
from
gcp_compute_instance;

Controls

The query is being used by the following controls: