s
AWS allows you to integrate your on-premise network with your cloud environment, either:
They can both be used for this purpose but are chosen based on different needs.
A VPN is an encrypted tunnel going over the Internet. There are two types of VPN in AWS:
AWS Direct Connect allows you to establish a direct connection from on-premise to AWS through a dedicated link.
There are several ways to use Direct Connect:
When connecting to AWS with Direct Connect, you need to setup a virtual interface to connect to the resources. When connecting to your private resources such as your VPCs, a private virtual interface will be required. When connecting to AWS services, a public virtual inerface will be required since they are considered as public services.
In order to use the same existing Direct Connect link to connect to another region, you can use a Direct Connect Gateway. In this case, an interface is created from your existing Direct Connect endpoint to connect to the Gateway, and then the Gateway can connect to the different VPCs in the different regions.
VPN VS. DX
Feature | VPN | DirectConnect |
---|---|---|
Encryption | YES | NO |
Connection Type | VPN goes through the Internet | DX is a dedicated connection |
Bandwidth | Limited to 1.25 GBPS | Between 1GBPS and 10GBPS |
Costs | Cheaper | More expensive than VPN |
Routing | Static/Dynamic | Dynamic only |