AWS networking
Site-to-Site VPN connections
- Site-to-Site VPN: setting up a secure connection between your on-premises network or another cloud environment and your AWS VPC
- Steps:
- create a Virtual Private Gateway in the VPC and attach it to your VPC
- Virtual Private Gateway: the concentrator on the AWS side of the VPN
- create a Customer Gateway in the VPC
- Customer Gateway: represents your on-premise VPN device
- need to set the static public IP address of your on-premise VPC device
- create the VPN connection
- establish the VPC connection between the Virtual Private Gateway and the Customer Gateway
- download the VPN configuration
- configure the on-premises VPN device
- apply the VPN configuration settings to your on-premise VPN device as per the vendor-specific instructions
- update the VPC route tables
- add a route to your on-premise network, specifying the Virtual Private Gateway as the target
- need to enable the Route Propagation for the route
- create a Virtual Private Gateway in the VPC and attach it to your VPC
Test
- A company needs to establish a Site-to-Site VPN connection to integrate the on-premises database with the current AWS workload in the VPC. What needs to be configured outside of the VPC?
- Answer: an Internet-routable IP address (static) of the customer gateway's external interface for the on-premises network.
Direct Connect (DX)
![[direct_connect.png]]
-
Provides a dedicated private connection from a remote network to your VPC
-
Connections must be set up between your DC and AWS Direct Connect locations
-
VPC side
- need to setup a Virtual Private Gateway (VGW)
-
AWS Direct Connect locations
- AWS Direct Connect Endpoint (AWS Cage)
- Customer or partner router (customer or partner cage)
-
Corporate data center
- customer router/firewall
-
Private virtual interface (EC2 instances): customer router/firewall => customer/partner router => AWS Direct Connect Endpoint => VPC Virtual Private Gateway
-
Public virtual interface (S3): customer router/firewall => Customer/partner router => AWS Direct Connect Endpoint
-
Use cases
- increase bandwidth throughput
- work with large data sets with lower cost (without public Internet)
- more consistent network experience - applications using real-time data feeds
- hybrid environments (both on-premise and cloud)
-
Direct Connect Gateway
- to setup a Direct Connect to one or more VPC in many different regions (same account)
-
Connection Types
- dedicated connections: 1Gbps, 10Gbps, 100Gbps capacity
- hosted connections: 50Mbps, 500Mbps to 10Gbps
- it often takes longer than 1 month to establish a new connection
-
Encryption
- data is not encrypted but it's private
- Direct Connect + VPN provides an IPsec-encrypted private connection
-
Resiliency
- high resiliency
- multiple locations, one connection per location
- maximum resiliency
- multiple locations, two connections per location
- high resiliency
-
Backup
- Direct Connection + backup Direct Connection: expensive
- Direct Connection + backup Site-to-Site VPC