Skip to content
Cloud Governance Tools

Require predefined policies for VPC flow logs

Require predefined policies for VPC flow logs is a Google Cloud guardrail written in organization Policy Service. Requires flow logs on all subnetworks in scope, at a minimum sampling rate set by the predefined policy. No documented way to test it before enforcement was found on 10 Nov 2026.

More logging and monitoring guardrails ยท About Organization Policy Service

constraints/compute.requireVpcFlowLogs
This list constraint defines the set of predefined policies that can be enforced for VPC Flow logs.
By default VPC Flow logs may be configured with any settings in each subnet.
This constraint enforces enabling flow logs for all subnetworks in scope with a required minimum sampling rate.
Specify one or more of the following valid values: ESSENTIAL (allows values >= 0.1 and LIGHT (allows values >= 0.5 and COMPREHENSIVE (allows values == 1.0)
Supported prefix: is:
For more information, see Configure organization policy constraints for VPC Flow Logs .
Blocks
Requires flow logs on all subnetworks in scope, at a minimum sampling rate set by the predefined policy. (legacy managed constraint, list.)
Breaks
Google documents that subnetworks in scope must have flow logs enabled with the required minimum sampling rate, where by default any settings are allowed. (source)
Test before applying
As for every Organization Policy Service guardrail: how to test before enforcing
Mechanism
Organization Policy Service (managed and legacy constraints): Resources in the organization, folder or project where the policy is set and its descendants; Google says application of new policies is usually not retroactive.
Taken from
provider documentation, provider documentation

What the source says

"This list constraint defines the set of predefined policies that can be enforced for VPC Flow logs." (read 10 Nov 2026).

On what it breaks: "This constraint enforces enabling flow logs for all subnetworks in scope with a required minimum sampling rate."

Sources

  1. Require predefined policies for VPC flow logs, read 10 Nov 2026
  2. How to test it first, read 10 Nov 2026

Last reviewed 16 Nov 2026.