Connecting On-Premises Networks with VPN and Direct Connect
This lesson explains how organisations connect their on-premises networks and remote users to AWS, and how speed, consistency, cost and setup time decide the right choice.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish AWS Site-to-Site VPN, AWS Client VPN and AWS Direct Connect.
- Describe how Direct Connect and Site-to-Site VPN can be combined.
Connection options
There are three main ways to connect to AWS from outside. AWS Site-to-Site VPN creates encrypted tunnels over the public internet between an office or data centre and a VPC. It can be set up in minutes to hours and costs little, but its performance depends on the internet. AWS Client VPN is a managed VPN for individual remote users connecting from their own devices.
AWS Direct Connect is a dedicated, private connection to AWS through a Direct Connect location, which does not travel over the internet. It often takes weeks to set up and costs more, but it gives consistent bandwidth and latency and can lower data transfer costs for large volumes. The following table summarises the options.
| Option | How it works | Setup | Performance | Cost |
|---|---|---|---|---|
| AWS Site-to-Site VPN | Encrypted IPsec tunnels over the public internet between your network and a VPC | Minutes to hours | Depends on the internet | Low |
| AWS Client VPN | Managed VPN for individual remote users on their devices | Quick | Depends on the internet | Per connection |
| AWS Direct Connect | A dedicated, private connection through a Direct Connect location, not over the internet | Often weeks | Consistent bandwidth and latency | Higher, but can lower data transfer costs |
Which connection?
Combining them
Direct Connect and Site-to-Site VPN can be used together. The following list describes two common combinations.
- Many companies use Direct Connect as the main link and a Site-to-Site VPN as a backup.
- A VPN can run over Direct Connect to add encryption.
Combining connections
Choosing a connection
Several organisations require connections between their networks and AWS. The following table identifies the appropriate connection for each situation.
| Situation | Choice |
|---|---|
| A small office needs a secure connection to AWS this week | AWS Site-to-Site VPN |
| A bank moves terabytes daily between its data centre and AWS and needs steady performance | AWS Direct Connect |
| The same bank wants a backup if Direct Connect fails | A Site-to-Site VPN as backup |
| Staff working from home need access to private applications in a VPC | AWS Client VPN |
The clues are speed of setup (VPN in minutes, Direct Connect often weeks), consistency of performance (Direct Connect), and whether the connection is for a whole office (Site-to-Site) or individual people (Client VPN).
Which option gives a private, dedicated network connection from a data centre to AWS?
Show answer
AWS Direct Connect. AWS Site-to-Site VPN uses an encrypted tunnel over the internet instead.
Exam Tips
Remember for the exam
- An encrypted connection over the internet that is quick to set up is a Site-to-Site VPN.
- A dedicated private connection with consistent performance is Direct Connect.
- For remote workers connecting securely, use Client VPN.
- A cheap backup for Direct Connect is a Site-to-Site VPN.