Skip to main content

đŸŒŠī¸ 08. Connect On-Premises Data Center to AWS (Hybrid Cloud)

Hybrid Cloud = On-Premises Data Center + AWS Cloud (VPC)
Used when you want secure communication between your local data center and AWS resources.

You have two main options to establish this connection:


1. Site-to-Site VPN​

A Site-to-Site VPN connects your on-premises data center to your AWS VPC over the public internet, using encrypted IPsec tunnels.

ComponentLocationDescription
Customer Gateway (CGW)On-premisesYour VPN device or software that initiates the VPN connection
Virtual Private Gateway (VGW)AWSAWS-side VPN endpoint attached to your VPC

🧩 Characteristics​

  • Encrypted traffic (IPsec)
  • Uses public internet
  • Quick setup (~5 minutes)
  • Low cost
  • Bandwidth limited by the internet connection
  • May have slightly higher latency

🧠 Example​

IAM Roles Example

2. AWS Direct Connect (DX)​

AWS Direct Connect (DX) establishes a dedicated physical connection between your on-premises data center and AWS.

🧩 Characteristics​

  • Private and dedicated network connection
  • High bandwidth, low latency
  • More secure and reliable
  • Costly
  • Longer setup time (~1 month)
  • Requires Direct Connect partner

âš–ī¸ Comparison Table​

FeatureSite-to-Site VPNAWS Direct Connect
Connection TypeOver public internet (encrypted)Dedicated private line
SpeedDependent on internetHigh bandwidth
Setup TimeFew minutesFew weeks (~1 month)
CostLowHigh
ReliabilityMediumVery high
SecurityEncrypted over public internetPrivate physical link
Ideal ForQuick, cost-effective hybrid connectionStable, enterprise-grade workloads
IAM Roles Example

🧠 Exam Tip​

  • If you need quick setup → choose Site-to-Site VPN.
  • If you need private, high-speed, reliable connection → choose Direct Connect.
  • Remember the components for VPN:
    👉 Customer Gateway (CGW) + Virtual Private Gateway (VGW) = Site-to-Site VPN

đŸ—ī¸ Visual Summary​