turbot/gcp_insights

Query: compute_firewalls_for_compute_network

Usage

powerpipe query gcp_insights.query.compute_firewalls_for_compute_network

SQL

with compute_firewall as (
select
id,
network
from
gcp_compute_firewall
), compute_network as (
select
self_link,
id
from
gcp_compute_network
where
id = (split_part($1, '/', 1))::bigint
and project = split_part($1, '/', 2)
)
select
f.id::text as firewall_id
from
compute_firewall f,
compute_network n
where
f.network = n.self_link;