Course contentsShow
← Security
Lesson 1836 of 3,05237. Cloud Security - Network ArchitectureFree lesson

VPC Peering Fundamentals

Understanding VPC peering concepts, use cases, and how to establish non-transitive connections between virtual networks.

VPC Peering Fundamentals

What you'll learn: How VPC peering creates direct, private network connections between virtual networks within or across cloud accounts.

What Is VPC Peering?

VPC peering is a networking connection that allows two VPCs to communicate using private IP addresses, as if they were on the same network. Think of it like building a private bridge between two gated communities—residents can visit each other directly without going through public roads, but visitors from one community can't automatically access a third community through the bridge (this is called non-transitive routing).

When you establish a VPC peer, traffic flows directly between the VPCs over the cloud provider's private network backbone, never traversing the public internet. This provides lower latency, higher security, and no bandwidth charges compared to internet-based connections.

Key Use Cases

  • Cross-account resource sharing: Allow production VPC in Account A to access shared services (databases, APIs) in Account B
  • Environment separation: Connect development and testing VPCs while maintaining isolation from production
  • Regional redundancy: Peer VPCs in different regions for disaster recovery architectures
  • Service consolidation: Centralize logging, monitoring, or security scanning services in one VPC accessible by others

Critical Security Constraint: Non-Transitivity

VPC peering is non-transitive by design. If VPC-A peers with VPC-B, and VPC-B peers with VPC-C, VPC-A cannot communicate with VPC-C through VPC-B. This prevents unintended access paths and requires you to explicitly peer every VPC that needs direct communication—a security feature that enforces deliberate network architecture.

Route tables must be updated on both sides to direct traffic for the peer's CIDR block through the peering connection. Security groups and NACLs still apply, giving you multiple layers of access control.

Key Takeaway: VPC peering creates secure, private connections between VPCs but is non-transitive—you must explicitly peer and route every required connection, which enhances security through intentional network design.