turbot/gcp_insights

Query: source_compute_images_for_compute_disk

Usage

powerpipe query gcp_insights.query.source_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.source_image = i.self_link
and d.id = (split_part($1, '/', 1))::bigint
and d.source_image <> ''