"VPC peering connects all your networks." It connects two. A peering connection is a one-to-one link, and it never passes traffic on to a third network. Teams that miss this draw a neat diagram, build it, and then wonder why packets from one VPC never reach another.
What a peering connection is
A VPC peering connection links two VPCs so they can route traffic to each other using private IP addresses. Resources on both sides talk as if they were in the same network.
- The two VPCs can be in the same account or different accounts.
- They can be in the same Region or different Regions.
- It is not a gateway or a VPN. AWS builds it on the existing VPC infrastructure, so there is no single point of failure and no bandwidth bottleneck.
- Inter-Region peering traffic is encrypted and stays on the AWS global network. It never crosses the public internet.
Four steps to set it up
- The owner of one VPC requests the connection.
- The owner of the other VPC accepts it. An unanswered request expires after seven days.
- Both sides add routes: each route table needs a route to the other VPC's address range that points at the peering connection.
- Security groups on both sides must allow the traffic.
Step 3 is the one people forget, usually on one side only. An active peering connection with a missing route looks healthy and carries nothing.
The limits that matter
No overlapping address ranges. You can't peer two VPCs whose CIDR blocks match or overlap. This is the best reason to plan address ranges before creating VPCs: two networks that both use 10.0.0.0/16 can never be peered.
No transitive peering. If A is peered with B, and B with C, A still can't reach C through B. A and C need their own peering connection.
No edge-to-edge routing. A VPC can't use its peer's internet gateway, NAT device, VPN, Direct Connect link or gateway endpoint. Peering reaches resources inside the other VPC, not what lies beyond it.
Put together, these limits mean peering is ideal for a few VPCs and awkward for many. Full connectivity between ten VPCs would need 45 separate connections. At that point a hub, AWS Transit Gateway, is the usual answer.
What it costs
There is no charge to create a peering connection. Data that stays within one Availability Zone is free, even between accounts. Data that crosses Availability Zones or Regions is charged at data transfer rates. That makes peering the low-cost option when only two networks need to talk.
Where AI fits
Many companies now run a shared AI platform VPC: model endpoints, vector databases and GPU capacity, managed by one team. Application teams keep their own VPCs and need a private path to it. Peering is the simplest way to connect one app VPC to that platform.
Keep the door narrow:
- Route only the subnets that really need each other, not the whole range.
- On the platform side, let security groups admit only the application's addresses, or its security group when both VPCs are in the same Region.
- Remember the 45-connections problem. When many teams need the same platform, move to a hub, or publish the service privately through AWS PrivateLink.
Quick recap
- Peering links two VPCs privately, across accounts and Regions.
- Address ranges can't overlap, and both sides need routes and security group rules.
- It is never transitive: for many networks, use a hub.