Service comparisons / VPC peering vs Transit Gateway vs PrivateLink

VPC peering vs Transit Gateway vs PrivateLink

VPC peering links two VPCs directly, Transit Gateway is a hub that connects many VPCs and on-premises networks, and PrivateLink exposes a single service privately, even across overlapping IP ranges. How to choose.

Last checked against AWS documentation · How we write our content

QuestionVPC peeringTransit GatewayPrivateLink
Use it whenA few VPCs need full network access to each otherMany VPCs, accounts, VPNs and Direct Connect need one routed networkConsumers need access to one service, not the whole network
ShapeOne-to-one connections; not transitiveHub and spoke; transitive, with route tables to segment trafficOne-way, consumer to provider, through interface endpoints
Overlapping IP rangesNot allowedNot routable between overlapping VPCsWorks fine
CostNo hourly charge; data transfer onlyPer attachment-hour plus per GB processedPer endpoint-hour plus per GB processed
Watch out forA full mesh of 10 VPCs needs 45 connectionsInter-VPC inspection needs an inspection VPC in the route pathThe provider puts the service behind a Network Load Balancer

All three connect things privately inside AWS without the internet. They differ in how much they connect: a pair of networks, many networks, or a single service.

How to choose

Exam traps