Multi-Project Network Design: Shared VPC, VPC Peering, Private Service Connect and Hub-and-Spoke Patterns

Google Cloud Platform Architect 60 min min read Updated: Nov 17, 2026 Advanced
Multi-Project Network Design: Shared VPC, VPC Peering, Private Service Connect and Hub-and-Spoke Patterns
Advanced Topic 4 of 4

The Multi-Team Problem

A company has dozens of teams and projects. If every project builds its own network, you get overlapping IPs, scattered firewall rules and no central control. Google Cloud offers several ways to connect projects safely.

Shared VPC

  • A host project owns the VPC network and subnets. Service projects attach to it and place resources (VMs, GKE) in the shared subnets
  • Network admins manage networks centrally. Developers manage their own resources without touching the network
  • Works inside one organization. IAM role compute.networkUser on a subnet controls who can use it
  • Best for: one network, many teams, central firewall and routing
bash gcloud compute shared-vpc enable host-net-project gcloud compute shared-vpc associated-projects add team-a-project --host-project=host-net-project gcloud projects add-iam-policy-binding host-net-project --member="group:team-a@example.com" --role="roles/compute.networkUser" # Better: grant networkUser on one subnet only gcloud compute networks subnets add-iam-policy-binding app-mumbai --region=asia-south1 --project=host-net-project \ --member="group:team-a@example.com" --role="roles/compute.networkUser"

VPC Network Peering

  • Connects two VPCs (same or different project or organization) so they talk over private IPs with no gateway
  • Each side keeps its own admin, firewall and routes
  • Not transitive: if A peers with B and B peers with C, A cannot reach C
  • No overlapping subnet ranges allowed
  • Limits on number of peerings per network
bash gcloud compute networks peerings create a-to-b --network=vpc-a --peer-project=proj-b --peer-network=vpc-b --export-custom-routes --import-custom-routes gcloud compute networks peerings create b-to-a --network=vpc-b --peer-project=proj-a --peer-network=vpc-a

Private Service Connect (PSC)

UseHow
Reach Google APIs privatelyCreate a PSC endpoint with an internal IP such as 10.10.0.50 for all-apis or vpc-sc
Consume a service from another VPC or organizationCreate an endpoint that targets a service attachment. Producer and consumer use different IP spaces, so overlap is fine
Publish your own servicePut it behind an internal load balancer and publish a service attachment
Managed services (Cloud SQL, Memorystore, AlloyDB)Many support PSC instead of private services access peering
bash gcloud compute addresses create psc-apis-ip --global --purpose=PRIVATE_SERVICE_CONNECT --addresses=10.10.255.250 --network=prod-vpc gcloud compute forwarding-rules create pscapis --global --network=prod-vpc --address=psc-apis-ip --target-google-apis-bundle=all-apis

Private Services Access

  • Older pattern: a peering with Google's service producer network (used by Cloud SQL private IP, Memorystore)
  • Reserve an IP range for Google services. Newer products favor Private Service Connect

Choosing

NeedChoose
Central network for many projects in one orgShared VPC
Connect two separate VPCs simplyVPC Peering
Connect VPCs with overlapping ranges or expose one service onlyPrivate Service Connect
Many VPCs and sites with transitNetwork Connectivity Center hub
Private access to Google APIs from on-premisesPSC endpoint or Private Google Access for on-premises hosts

Landing Zone Pattern

text Org ├─ Folder: Network → Project: net-hub-prod (Shared VPC host, Cloud NAT, DNS, firewall policies, VPN/Interconnect) ├─ Folder: Production → service projects (shop-prod, data-prod) attached to the host ├─ Folder: Non-prod → service projects attached to a separate non-prod host └─ Folder: Security → logging sink project, SCC, KMS keys Org policies: no external IPs, allowed regions, no SA keys Central firewall policy at org level
  • Use separate host projects for prod and non-prod
  • Keep logging and security in their own projects
  • Automate everything with Terraform

Practice

  1. Design Shared VPC for three teams and mark who gets which IAM role
  2. Explain why peering VPC A-B and B-C does not let A reach C
  3. Choose between peering and PSC for a partner who uses the same 10.0.0.0/16 range
  4. Create a PSC endpoint for Google APIs

Conclusion

Use Shared VPC for central control across many projects, VPC peering for simple non-transitive links, and Private Service Connect for private access to services across IP spaces. Combine them in a landing zone with separate prod and non-prod networks.

Quick Summary: problem; Shared VPC; peering; PSC; private services access; choosing; landing zone.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators