Skip to Content

AWS Direct Connect

AWS Direct Connect for a dedicated private connection to AWS, virtual interfaces, the Direct Connect gateway, dedicated and hosted connections, encryption, resiliency, and a VPN as backup.

What it is

AWS Direct Connect: a dedicated line runs from the on-premises data center's router to a customer or partner router at a Direct Connect location, cross-connected to the AWS router there; a private virtual interface reaches the VPC through a virtual private gateway, and a public virtual interface reaches public services such as S3 and Glacier AWS Direct Connect: a dedicated line runs from the on-premises data center's router to a customer or partner router at a Direct Connect location, cross-connected to the AWS router there; a private virtual interface reaches the VPC through a virtual private gateway, and a public virtual interface reaches public services such as S3 and Glacier

A private line from an on-premises data center to AWS.

AWS Direct Connect (DX) provides a dedicated private connection from a remote network to a VPC.

  • A dedicated connection must be set up between the on-premises DC and AWS Direct Connect locations.
  • A virtual private gateway must be set up on the VPC (or a Direct Connect gateway / transit gateway).
  • Access public resources (S3) and private resources (EC2) on the same connection, with virtual interfaces (VIFs):
    • private VIF: to a VPC;
    • public VIF: to public AWS services such as S3, in all Regions;
    • transit VIF: to a transit gateway.
  • Use cases:
    • increase bandwidth throughput: working with large data sets, at lower cost;
    • a more consistent network experience: applications using real-time data feeds;
    • hybrid environments (on premises + cloud).
  • Supports both IPv4 and IPv6.

Direct Connect gateway

A Direct Connect gateway: one Direct Connect connection from the on-premises data center reaches a Direct Connect gateway, a global resource, which connects through private virtual interfaces to VPCs in us-east-1 and us-west-2, and can include VPCs in other accounts A Direct Connect gateway: one Direct Connect connection from the on-premises data center reaches a Direct Connect gateway, a global resource, which connects through private virtual interfaces to VPCs in us-east-1 and us-west-2, and can include VPCs in other accounts

One connection, VPCs in many Regions.

To set up a Direct Connect to one or more VPCs in many different Regions, use a Direct Connect gateway. It's a global resource, associated with virtual private gateways or transit gateways.

Updated since the slides

The slides say the VPCs must be in the same account. A Direct Connect gateway can now be associated with virtual private gateways and transit gateways in other accounts too (the other account proposes the association and the gateway owner accepts it).

Connection types

  • Dedicated connections: 1, 10, 100 or 400 Gbps capacity.
    • A physical Ethernet port dedicated to a customer.
    • Request made to AWS first, then completed by AWS Direct Connect Partners.
  • Hosted connections: 50 Mbps to 25 Gbps.
    • Connection requests are made through AWS Direct Connect Partners.
    • Capacity can be added or removed on demand.
  • Lead times are often longer than 1 month to establish a new connection.

Encryption

  • Data in transit is not encrypted, but it's private.
  • AWS Direct Connect + VPN provides an IPsec-encrypted private connection.
  • Good for an extra level of security, but slightly more complex to put in place.

Not in the course slides

Direct Connect also supports MACsec (IEEE 802.1AE) on dedicated 10, 100 and 400 Gbps connections at selected locations: layer 2 encryption between the customer router and the Direct Connect device, without the VPN overhead.

Resiliency

Direct Connect resiliency: for high resiliency, one connection at each of two Direct Connect locations; for maximum resiliency, separate connections terminating on separate devices at two or more locations Direct Connect resiliency: for high resiliency, one connection at each of two Direct Connect locations; for maximum resiliency, separate connections terminating on separate devices at two or more locations

More locations and devices, more resilience.
  • High resiliency for critical workloads: one connection at multiple locations.
  • Maximum resiliency for critical workloads: achieved by separate connections terminating on separate devices in more than one location.

Site-to-Site VPN as a backup

Site-to-Site VPN as a Direct Connect backup: the corporate data center reaches the VPC through Direct Connect as the primary connection, and a cheaper Site-to-Site VPN over the internet takes over if Direct Connect fails Site-to-Site VPN as a Direct Connect backup: the corporate data center reaches the VPC through Direct Connect as the primary connection, and a cheaper Site-to-Site VPN over the internet takes over if Direct Connect fails

A cheap safety net for the private line.

In case Direct Connect fails, the options are a backup Direct Connect connection (expensive), or a Site-to-Site VPN connection.

Real-world examples

  • A bank moves 50 TB of nightly batch data between its data center and AWS. A 10 Gbps Direct Connect gives steady throughput and lower data transfer prices than the internet; a Site-to-Site VPN is the backup.

Exam tips

  • "Dedicated, private, consistent network performance to AWS", "large data, low latency" → Direct Connect.
  • "Need connectivity next week" → Site-to-Site VPN (Direct Connect takes over a month).
  • "Encrypt traffic over Direct Connect" → VPN over Direct Connect (IPsec), or MACsec.
  • "Direct Connect to VPCs in several Regions" → Direct Connect gateway.
  • "Cheapest backup for Direct Connect" → Site-to-Site VPN.
  • "Maximum resiliency" → separate connections on separate devices at more than one location.
  • "Less than 1 Gbps, from a partner" → hosted connection.

Common traps

  • "Direct Connect is encrypted." It's private, not encrypted.
  • "Direct Connect can be ready in days." Lead time is often over a month.

Check yourself

Direct Connect needs a physical circuit, so instead:

AWS documentation

On this page

Open notes

Spotted a mistake?

These notes are open source. Suggest a fix, or star the repo if they helped you.

Suggest an edit

For AI agents: llms.txt · llms-full.txt