turbot/gcp_insights

Query: compute_instance_groups_for_compute_subnetwork

Usage

powerpipe query gcp_insights.query.compute_instance_groups_for_compute_subnetwork

SQL

select
g.id::text || '/' || g.project as group_id
from
gcp_compute_instance_group g,
gcp_compute_subnetwork s
where
g.subnetwork = s.self_link
and s.id = (split_part($1, '/', 1))::bigint
and s.project = split_part($1, '/', 2);