Control: Ensure legacy networks do not exist for a project
Legacy networks have a single network IPv4 prefix range and a single gateway IP address for the whole network. The network is global in scope and spans all cloud regions. Subnetworks cannot be created in a legacy network and are unable to switch from legacy to auto or custom subnet networks. Legacy networks can have an impact for high network traffic projects and are subjected to a single point of contention or failure.
Run the control in your terminal:
steampipe check terraform_gcp_compliance.control.compute_network_contains_no_legacy_network
Snapshot and share results via Steampipe Cloud:
steampipe loginsteampipe check --share terraform_gcp_compliance.control.compute_network_contains_no_legacy_network
This control uses a named query:compute_network_contains_no_legacy_network