Lesson 6 of 10 Advanced Networking

Separating Network and Workload Ownership with Shared VPCs

This lesson explains how a shared VPC lets a central networking account own the VPC and its infrastructure while workload accounts deploy into its subnets, combining central control of IP space, egress and endpoints with account isolation.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe how subnets are shared with participants.
  • Explain the division of responsibility between owner and participants.
  • Weigh the benefits and trade-offs of consolidating VPCs.

How a shared VPC works

The networking account, the owner, creates a VPC and shares some of its subnets through AWS RAM with accounts or OUs, the participants. Participants see the shared subnets in their own accounts and launch instances, load balancers, Lambda functions and databases into them, exactly as into their own subnets. Different subnets can be shared with different participants, so one VPC can serve several teams while keeping their workloads in separate subnets.

Participants cannot modify the VPC, subnets, route tables, NAT gateways or network ACLs, and they cannot see or change other participants' resources. The network therefore stays under central control, while each team keeps its own account boundary for IAM, billing and quotas on the resources it creates.

Division of responsibility

In a shared VPC, the owner account, usually networking, shares subnets with participant accounts, and responsibility is split between them. The owner creates and manages the VPC, subnets, route tables and network ACLs, and creates and pays for shared infrastructure such as NAT gateways, VPC endpoints and the internet gateway. Participants use the subnets and that infrastructure through routing but cannot change them. In return, participants create, own and pay for their own instances, databases and load balancers, which the owner cannot modify. Each participant manages its own security groups, which the owner can see and reference. Application teams therefore keep control of their resources while the network stays under central control. The following table summarises the division.

Owner account
VPC, subnets, route tables, network ACLsCreates and manages
NAT gateways, VPC endpoints, internet gatewayCreates and pays
Instances, databases, load balancersCannot modify
Security groupsCan see and reference
Participant account
VPC, subnets, route tables, network ACLsUses only
NAT gateways, VPC endpoints, internet gatewayUses through routing
Instances, databases, load balancersCreates, owns and pays
Security groupsCreates and manages its own

Benefits and trade-offs

Consolidating many small VPCs into a few shared ones has clear benefits. Fewer VPCs means fewer CIDR blocks to allocate, fewer transit gateway attachments and one set of NAT gateways and interface endpoints instead of one per account, which is often a significant cost saving. IP planning, egress filtering and endpoint policies are controlled in one place by the networking team, while workloads still have separate accounts for billing, IAM and service quotas.

The trade-off is a larger shared failure and blast-radius domain: a misconfigured route or network ACL in the shared VPC affects every participant, and per-VPC quotas, such as the number of network interfaces or security groups, are shared by all of them. Organisations therefore usually create separate shared VPCs for production and non-production, and sometimes per business unit, rather than one VPC for everything.

Worked example

Consolidating 40 VPCs into shared VPCs

A company has 40 workload accounts, each with its own VPC, three NAT gateways and eight interface endpoints across three Availability Zones. The network team wants to reduce cost and IP consumption without merging the accounts. The approximate monthly fixed cost before and after:

Before (40 VPCs)                  After (2 shared VPCs: prod, non-prod)
NAT gateways              40 x 3 = 120  (~$3,900)           2 x 3 = 6   (~$200)
Interface endpoints       40 x 8 x 3 AZs = 960 (~$7,000)    2 x 8 x 3 = 48 (~$350)
TGW attachments           40            (~$1,450)           2           (~$75)

The networking account creates one production and one non-production VPC from IPAM pools and shares their subnets through RAM with the corresponding OUs. Workloads keep separate accounts, so billing, IAM and quotas stay isolated, and each team manages its own security groups. Data processing charges continue as before, but the fixed cost falls by roughly 95%. The trade-off is a shared failure domain per VPC and shared VPC quotas, which is why production and non-production are kept apart.

Check yourself

In a shared VPC, who can change the subnets and route tables?

Show answer

Only the owner account. Participant accounts create their own resources, such as instances and databases, in the shared subnets.

Exam Tips

Remember for the exam

  • Central network ownership with decentralised workloads points to shared VPCs through RAM.
  • Participants own their resources and security groups but cannot change the VPC or routing.
  • Shared VPCs reduce the number of NAT gateways, endpoints and TGW attachments.
  • Use separate shared VPCs for production and non-production to limit the shared failure domain.