turbot/steampipe-mod-gcp-compliance

Control: Ensure that the default network does not exist in a project

Description

To prevent the use of default network, a project should not have a default network.

Usage

Run the control in your terminal:

powerpipe control run gcp_compliance.control.compute_network_contains_no_default_network

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

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

Tags