How to connect VPCs without exposing your network
Three ways to connect VPCs on AWS - each with different tradeoffs for cost, complexity, and security. VPC Peering is simple and cheap, Transit Gateway scales to thousands of VPCs, and PrivateLink exposes specific services without network-level access.
Centralized routing for up to 5,000 VPCs with 50 Gbps per attachment
Simplest option - no additional infrastructure, no transitive routing
Exposes one service, not the entire network - zero trust by design
| Criteria | Transit Gateway | VPC Peering | PrivateLink |
|---|---|---|---|
| Connectivity Model | Hub-and-spoke (any-to-any) | 1-to-1 (non-transitive) | Service endpoint (unidirectional) |
| Max Connections | 5,000 attachments | 125 peering per VPC | Unlimited endpoints |
| Transitive Routing | Yes | No | N/A |
| Cross-Region | Yes (inter-region peering) | Yes | Yes (since late 2024) |
| Cross-Account | Yes | Yes | Yes |
| Network Exposure | Full VPC routing (configurable) | Full VPC routing | Single service only |
| Bandwidth | 50 Gbps per VPC attachment | No aggregate limit (per-flow limited by instance type) | Scales with NLB behind the endpoint |
| Centralized Inspection | Yes (with GWLB) | No | No |
PrivateLink never exposes your VPC CIDR, routing tables, or security groups to the consumer. Traffic flows through the AWS backbone, never the public internet. It is zero-trust networking by default.
If VPC A peers with B, and B peers with C, A cannot reach C through B. This limits blast radius. But it also means you need Transit Gateway if you want any-to-any connectivity.
Route all inter-VPC traffic through a centralized inspection VPC running Network Firewall or a third-party IDS. This is the recommended architecture for regulated environments.
At $0.05/hr per attachment, 20 VPCs cost ~$730/month in attachment fees alone, before data processing. Budget carefully for large multi-account deployments.
These comparisons are a starting point. Every architecture is different. Contact us for tailored AWS security assessments and architectural guidance.