Keyboard Shortcuts N Next post
P Previous post
S Save / unsave
R Read aloud
T Toggle theme
/ Focus search
Esc Close panels
🔥
Ready to read...
AWS Cloud Computing Cloud Computing: From Zero to Production Module 5 — Networking Networking

VPC Peering and Transit Gateway

Reviewed & accurate
AI Summary

What You Will Learn

Advanced

  • What VPC peering is
  • Transit Gateway for complex topologies
  • When to use each

VPC Peering connects two VPCs so they can communicate as if they are the same network. Transit Gateway is a hub-and-spoke model for connecting many VPCs.

AspectVPC PeeringTransit Gateway
Connections1-to-1Many-to-many
TransitivityNo (A-B, B-C != A-C)Yes
CostFree$$ per attachment
Best for2 VPCs3+ VPCs

Practical Exercise

Create two VPCs in different CIDR ranges
Create a VPC peering connection between them
Update route tables to route through the peering
Test: EC2 in VPC-A pings EC2 in VPC-B

Key Takeaways

  • VPC Peering: 1-to-1 VPC connection. Free.
  • Transit Gateway: hub-and-spoke for many VPCs.
  • Peering is NOT transitive (A-B-C does not connect A-C).
  • Transit Gateway IS transitive.
  • Use peering for 2 VPCs, Transit Gateway for 3+.
Previously: Lesson 32 covered security groups.
Today: You learned: Connect VPCs for cross-network communication.
Next: Lesson 34 covers CloudFront.
Test Your Knowledge
How did you find this?

Comments

Join the discussion! Sign in with your Google or Blogger account, or comment as Anonymous - no account needed. For quick questions, also reach me on Telegram @cytestch.

Comments