turbot/gcp_insights

Query: compute_images_for_kms_key

Usage

powerpipe query gcp_insights.query.compute_images_for_kms_key

Steampipe Tables

SQL

select
i.id::text as image_id
from
gcp_compute_image as i
where
i.image_encryption_key is not null
and $1 like '%' || split_part(i.image_encryption_key->>'kmsKeyName', '/cryptoKeyVersions/', 1);