Skip to main content

Learn any cloudLabsGoogle Cloud Shared VPC & Org Policies Walkthrough

Google Cloud Shared VPC & Org Policies Walkthrough

WorkspacesUnknown

Explore and validate Google Cloud Foundation Fabric Resource Manager folders, Organization Policies, and Shared VPC Host networking in a browser container workspace.

Intermediateabout 15 minutesToolsterraform

Opening your lab workspace…

Steps

  1. Step 1: Review Resource Manager Folders & Organization Policies

    Review folders.tf and org-policies.tf. The configuration defines Platform, Corp, and Online folder hierarchies along with organizational policy constraints that enforce shielded VMs and prevent external IP exposure.

    cat folders.tf
    cat org-policies.tf
    
  2. Step 2: Inspect Shared VPC Host Network & Subnets

    Examine shared-vpc.tf and projects.tf to see how the Shared VPC Host project shares subnets and Cloud NAT gateways with attached service projects.

    cat shared-vpc.tf
    cat projects.tf
    
  3. Step 3: Validate Cloud Foundation Fabric Terraform

    Run terraform init -backend=false and terraform validate inside the terminal to verify syntax across all Foundation Fabric resource definitions.

    terraform init -backend=false
    terraform validate
    

    Checked by the agent (terraform-validate): The runner checks that all Google Cloud provider blocks and folder module calls validate cleanly.