turbot/gcp_insights

Query: compute_instances_for_compute_subnetwork

Usage

powerpipe query gcp_insights.query.compute_instances_for_compute_subnetwork

SQL

select
i.id :: text as instance_id
from
gcp_compute_instance i,
gcp_compute_subnetwork s,
jsonb_array_elements(network_interfaces) as ni
where
ni ->> 'subnetwork' = s.self_link
and s.id = $1;