turbot/gcp_insights

Query: compute_routers_for_compute_network

Usage

powerpipe query gcp_insights.query.compute_routers_for_compute_network

SQL

select
r.id::text as router_id
from
gcp_compute_router r,
gcp_compute_network n
where
r.network = n.self_link
and n.id = (split_part($1, '/', 1))::bigint
and n.project = split_part($1, '/', 2);