Course contentsShow
← Security
Lesson 1840 of 3,05237. Cloud Security - Network ArchitectureFree lesson

VPN Connections to Cloud

Site-to-site VPN configurations for secure connectivity between on-premises networks and cloud VPCs.

VPN Connections to Cloud

What you'll learn: How to securely connect your on-premises network to cloud VPCs using site-to-site VPN tunnels.

What Is a Site-to-Site VPN Connection?

A site-to-site VPN creates an encrypted tunnel between your on-premises data center (or office network) and your cloud VPC. Think of it as a secure highway that extends your private network into the cloud—traffic flows between locations as if they're on the same network, protected by encryption.

Unlike remote access VPNs (used by individual employees), site-to-site VPNs connect entire networks together. Your on-premises router establishes the connection with a cloud-provided VPN endpoint, enabling servers in your data center to communicate directly with cloud resources.

Key Components

Customer Gateway: Represents your physical on-premises VPN device (router or firewall) in the cloud configuration. You provide its public IP address.

Virtual Private Gateway (VGW): The cloud-managed VPN endpoint attached to your VPC. It terminates the VPN tunnel on the cloud side.

VPN Tunnels: For redundancy, cloud providers typically create two encrypted tunnels (using IPsec protocol) connecting your gateway to different availability zones.

Security Considerations

  • Encryption in transit: All traffic traverses the internet encrypted via IPsec, protecting against interception
  • Routing control: Use route tables to specify exactly which VPC subnets are reachable from on-premises and vice versa
  • Shared keys or certificates: Authentication typically uses pre-shared keys (PSKs)—store these securely and rotate periodically
  • Split tunneling: Only route cloud-destined traffic through the VPN, not all internet traffic
  • BGP support: For dynamic routing and automatic failover between tunnels

VPNs provide cost-effective hybrid connectivity but depend on internet quality—latency and bandwidth vary with your internet connection.

Key Takeaway: Site-to-site VPNs securely extend your on-premises network into cloud VPCs over encrypted IPsec tunnels, enabling hybrid architectures while maintaining network isolation and encryption in transit.