turbot/gcp_insights

Query: target_compute_images_for_compute_disk

Usage

powerpipe query gcp_insights.query.target_compute_images_for_compute_disk

SQL

select
i.id::text || '/' || i.project as image_id
from
gcp_compute_disk d,
gcp_compute_image i
where
d.self_link = i.source_disk
and d.id = (split_part($1, '/', 1))::bigint
-- and d.project = split_part($1, '/', 2)