Skip to main content
Skip to main content
Still in beta — questions, comments or suggestions? aramb@aramb.dev

Hybrid Connectivity: Direct Connect and VPN

Learn how to connect on-premises data centers to AWS using Site-to-Site VPN and AWS Direct Connect — and when to choose each.

12 min
Introductory

Learning outcomes

By the end of this lesson, you will be able to:

  1. Explain what hybrid connectivity means.
  2. Describe how AWS Site-to-Site VPN works.
  3. Describe how AWS Direct Connect works.
  4. Compare VPN and Direct Connect across key dimensions.
  5. Choose the right service based on common exam scenarios.
  6. Recognize AWS Transit Gateway as a way to connect multiple VPCs.

What is hybrid connectivity?

Hybrid connectivity means linking your on-premises data center (or corporate office) to your AWS VPC so resources in both environments can communicate as if they were on the same private network.

Common reasons:

  • Migrating workloads gradually (not all at once).
  • Keeping sensitive data on-premises while running applications in AWS.
  • Extending an existing corporate network into the cloud.

AWS offers two primary services for this: Site-to-Site VPN and Direct Connect.


AWS Site-to-Site VPN

A Site-to-Site VPN creates an encrypted tunnel between your on-premises network and your AWS VPC over the public internet.

How it works

  1. You set up a Virtual Private Gateway on the AWS side (attached to your VPC).
  2. You configure a Customer Gateway on your side (your on-premises router/firewall).
  3. AWS creates two VPN tunnels (for redundancy) between them.
  4. All traffic is encrypted using IPsec.

Key characteristics

FeatureDetail
Connection typeEncrypted tunnel over the public internet
Setup timeMinutes to hours
BandwidthUp to ~1.25 Gbps per tunnel
EncryptionYes (IPsec)
CostLow — hourly charge + data transfer
ReliabilitySubject to internet variability (jitter, latency spikes)

Tip

Exam pattern: "Need a private connection quickly" or "encrypted connection over the internet" → Site-to-Site VPN.


AWS Direct Connect

AWS Direct Connect establishes a dedicated, private physical connection between your data center and AWS — bypassing the public internet entirely.

How it works

  1. You work with a Direct Connect partner (or go to an AWS Direct Connect location) to provision a physical cross-connect.
  2. A dedicated fiber connection links your network to AWS.
  3. Traffic flows over this private link — not through the internet.

Key characteristics

FeatureDetail
Connection typeDedicated private physical link
Setup timeWeeks to months
Bandwidth1 Gbps, 10 Gbps, or 100 Gbps (dedicated); 50 Mbps–10 Gbps (hosted)
EncryptionNot encrypted by default (add VPN on top for encryption)
CostHigher — port charges + data transfer
ReliabilityConsistent latency and throughput (no internet variability)

Note

Direct Connect does not encrypt traffic by default. If you need encryption over a Direct Connect link, you can run a VPN tunnel on top of it.

Tip

Exam pattern: "Need consistent, high-throughput, low-latency connectivity" or "dedicated private connection" → Direct Connect.


Side-by-side comparison

DimensionSite-to-Site VPNDirect Connect
Travels overPublic internetDedicated private link
Setup timeMinutes to hoursWeeks to months
BandwidthUp to ~1.25 Gbps/tunnelUp to 100 Gbps
LatencyVariable (internet-dependent)Consistent and low
EncryptedYes (IPsec)No (add VPN for encryption)
CostLowerHigher
Best forQuick setup, backup connectivity, lower bandwidth needsHigh throughput, consistent performance, large data transfers

AWS Transit Gateway — connecting multiple VPCs

As your AWS environment grows, you may have dozens of VPCs across accounts and Regions. AWS Transit Gateway acts as a central hub that connects:

  • Multiple VPCs
  • On-premises networks (via VPN or Direct Connect)
  • Other Transit Gateways (across Regions)

Think of it as a network router in the cloud — instead of creating individual peering connections between every pair of VPCs, everything connects through the Transit Gateway.

Note

For the CCP exam, you only need to know that Transit Gateway exists and that it simplifies connecting multiple VPCs and on-premises networks. You won't be asked about configuration details.


Summary

ServiceWhat it doesSpeed to set upBest for
Site-to-Site VPNEncrypted tunnel over the internetMinutes to hoursQuick, encrypted, lower-bandwidth connections
Direct ConnectDedicated private physical linkWeeks to monthsHigh-throughput, consistent-latency workloads
Transit GatewayCentral hub connecting multiple VPCs and on-prem networksHours to daysLarge multi-VPC environments

Knowledge Check

Knowledge Check
1 / 3

A company needs to connect their on-premises data center to AWS within one business day. Which service should they use?

Next lesson

Lesson 6: Networking Review Quiz