turbot/gcp_compliance

Query: compute_instance_with_custom_metadata

Usage

powerpipe query gcp_compliance.query.compute_instance_with_custom_metadata

Steampipe Tables

SQL

select
self_link resource,
case
when name like 'gke-%' then 'skip'
when metadata is not null then 'ok'
else 'alarm'
end as status,
case
when name like 'gke-%' and labels ? 'goog-gke-node'
then title || ' created by GKE.'
when metadata is not null then title || ' has custom metadata.'
else title || ' has no custom metadata.'
end as reason
, location as location, project as project
from
gcp_compute_instance;

Controls

The query is being used by the following controls: