turbot/steampipe-mod-gcp-compliance

Control: Ensure legacy networks do not exist for a project

Description

In order to prevent use of legacy networks, a project should not have a legacy network configured.

Usage

Run the control in your terminal:

powerpipe control run gcp_compliance.control.compute_network_contains_no_legacy_network

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run gcp_compliance.control.compute_network_contains_no_legacy_network --share

SQL

This control uses a named query:

select
self_link resource,
case
when ipv4_range is not null then 'alarm'
else 'ok'
end as status,
case
when ipv4_range is not null
then title || ' is a legacy network.'
else title || ' not a legacy network.'
end as reason
, project as project
from
gcp_compute_network;

Tags