Shared VPC

On this page 7

Shared VPC is a cloud networking model in which one host project owns a virtual private cloud network and other projects, called service projects, deploy their workloads into subnets of that network. In cloud networking, the term originates from Google Cloud, where Shared VPC is a named feature, and AWS offers a closely related capability called VPC sharing. Both separate who administers the network from who runs the applications on it.

The model answers a common organizational problem in the Cloud: many teams need isolated projects or accounts for billing, permissions and quotas, yet the company wants one consistent address plan, one set of firewall policies and one path to on-premises networks. Shared VPC delivers that central control without forcing every team into a single project.

How Shared VPC separates network and workload ownership

Shared VPC works by designating a host project that contains the VPC network, subnets, routes, firewall rules and hybrid connectivity, and attaching one or more service projects whose resources use IP addresses from those subnets. A virtual machine, a GKE node or an internal load balancer created in a service project receives an internal IP address from the host network, yet it remains billed, owned and governed inside its own service project.

In Google Cloud, an organization-level Shared VPC Admin enables the host project and attaches service projects. Network administrators in the host project manage the network itself, while Service Project Admins receive the Compute Network User role either on the whole host project or only on specific subnets. Granting access per subnet is the usual way to keep each team inside its own address range.

The table below summarizes the roles that a typical Google Cloud deployment uses and the scope each one controls.

RoleWhere it is grantedWhat it controls
Shared VPC AdminOrganization or folderEnabling hosts, attaching service projects
Network AdminHost projectSubnets, routes, peering, hybrid links
Security AdminHost projectFirewall rules and SSL certificates
Network UserHost project or single subnetUsing subnets for new resources
Service Project AdminService projectInstances, clusters and load balancers
Roles in a Google Cloud Shared VPC deployment

Shared VPC in Google Cloud and VPC sharing in AWS

Google Cloud and AWS implement the same idea with different mechanics. In Google Cloud, a service project attaches to exactly one host project, and a host project cannot itself be a service project. An organization may run several host projects, for example one for production and one for development.

In AWS, the owning account shares individual subnets through AWS Resource Access Manager with participant accounts in the same AWS Organization. Participants launch instances, databases and functions into those subnets and manage their own security groups, but they cannot modify the subnets, route tables or network ACLs that the owner controls.

AspectGoogle Cloud Shared VPCAWS VPC sharing
Unit of sharingWhole network or selected subnetsIndividual subnets
Owner unitHost projectOwner account
Consumer unitService projectParticipant account
Sharing mechanismIAM roles on host project or subnetResource Access Manager share
Firewall modelCentral VPC firewall rules and policiesParticipant security groups plus owner ACLs
Scope requirementSame organizationSame AWS Organization
Shared VPC compared across two providers

Microsoft Azure has no direct equivalent: a virtual network belongs to one subscription, so Azure designs usually reach a similar result with a hub-and-spoke network built on VNet peering and centrally managed firewalls.

Shared VPC versus peering and transit designs

Shared VPC differs from VPC peering and transit gateways because it places every workload in one network instead of connecting many separate networks. That single network avoids peering limits and transitive routing problems, but it also concentrates administrative power and failure scope.

The comparison below shows how the main multi-project connectivity patterns differ in practice.

PatternNetwork countCentral controlTypical constraint
Shared VPCOne shared networkStrongSingle administrative blast radius
VPC peeringMany networksWeakNon-transitive, overlapping ranges blocked
Transit gatewayMany networksModerate to strongExtra hop cost and route tables
Hub-and-spoke networkHub plus spokesStrong in hubAppliance throughput in hub
Multi-project network patterns compared

Large organizations often combine the patterns: a few Shared VPC host networks per environment, connected to each other and to data centers through a transit or interconnect layer.

Designing and operating a Shared VPC

A successful Shared VPC starts with a deliberate IP address plan, because subnets are hard to resize once many teams depend on them. Engineers usually reserve non-overlapping private ranges per environment and Region, and they plan secondary ranges for Kubernetes pods and services ahead of time.

  • Create separate host projects for production and non-production so that a misconfiguration in testing cannot affect live traffic.
  • Grant the Network User role per subnet, not per host project, so each team sees only its own ranges.
  • Keep Cloud NAT, VPN and interconnect attachments in the host project, where the network team can monitor them.
  • Enable VPC flow logs centrally to give security teams visibility across all service projects.

Billing follows the resource rather than the network. Compute and egress charges land in the service project that owns the virtual machine, which keeps cost allocation per team intact, while shared components such as NAT gateways or interconnect ports are billed to the host project and may need internal chargeback.

Risks and common mistakes with Shared VPC

The main risk of Shared VPC is concentration of change: one faulty firewall rule or route in the host project can affect every attached team at once. Mature operators therefore manage host projects through infrastructure as code with peer review and restrict network roles to a small group.

ProblemCauseRemedy
Team cannot create instancesMissing Network User grantGrant the role on the needed subnet
Subnet runs out of addressesRange sized too smallExpand the range or add a subnet
Unexpected cross-team accessBroad firewall rulesUse tags or service accounts in rules
GKE cluster creation failsMissing secondary ranges or agent rolesPrepare ranges and grant service agent access
Common Shared VPC problems and remedies

Another frequent mistake is treating Shared VPC as a security boundary between teams. Workloads in the same network can reach one another unless firewall rules or policies say otherwise, so explicit segmentation rules remain necessary even when projects are separate.

Understanding it simply

Think of a large office building. The building manager owns the corridors, doors and security desk, while each company rents its own office inside. The tenants furnish and pay for their own rooms, but they all use the same hallways and follow the same building rules.

Shared VPC works the same way. One central team owns the network and its rules, and many application teams place their servers inside it. Each team keeps its own budget and permissions, and the company gets one tidy, well-guarded network instead of dozens of separate ones.

Applied in practice

A bank moving to Google Cloud has about 40 application teams, each with its own project for billing and access control. The platform team creates two host projects, one for production and one for development, and carves out a dedicated subnet with secondary ranges for each team in two Regions. A single pair of interconnect links in the production host project connects the network to the bank’s data centers.

Each team receives the Network User role only on its own subnets and deploys GKE clusters and virtual machines from its service project. Security engineers manage hierarchical firewall policies and flow logs in one place. The result is that new teams are onboarded in hours instead of weeks, auditors review one network design rather than forty, and the bank avoids paying for duplicate interconnects and NAT gateways.