Configuration template to deploy a Site-to-Site VPN connection for an existing VPC between a virtual private gateway (VGW) on the AWS side, and a VPN device (customer gateway) on the remote side

This template includes the following settings: 

  • Amazon Configuration Side:
    • Existing VPC Id where the connection will be configured
    • (Optional) Gateway name and BGP ASN for the Amazon VPN gateway
  • Remote Side
    • Public IP Address for the remote gateway
    • Gateway Name and BGP ASN for the remote VPN gateway
  • Static or Dynamic (BGP) routing mode:
    • With static routes, you can provide predefined IP CIDRs to add to the VPN tunnel configuration
    • Dynamic routing will enable automatic route propagation from the VPN tunnel to the provided Route Table Ids

Note: Once the VPN connection is active, you can download additional tunnel settings such as pre-shared key and the public IP address from the VPC Console > VPN Connections > Download Configuration

VpcVpnGateway
AWS::EC2::VPNGateway


VpcVpnGatewayAttachment
AWS::EC2::VPCGatewayAttachment


CustomerGateway
AWS::EC2::CustomerGateway


VpnConnection
AWS::EC2::VPNConnection


CloudFormation Template

Share Template