AWS::EC2::VPNConnectionRouteSpecifies a static route for a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway. For more information, see [](https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in the *User Guide*.
2 configurable properties. 2 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
DestinationCidrBlock | string | RequiredCreate-only |
VpnConnectionId | string | RequiredCreate-only |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::VPNConnectionRoute
Resources:
MyResource:
Type: AWS::EC2::VPNConnectionRoute
Properties:
DestinationCidrBlock: "my-destinationcidrblock"
VpnConnectionId: "my-vpnconnectionid"Permissions CloudFormation needs in your IAM role to manage this resource.
ec2:DescribeVpnConnectionsec2:CreateVpnConnectionRouteec2:DescribeVpnConnectionsec2:DescribeVpnConnectionsec2:DeleteVpnConnectionRouteec2:DescribeVpnConnectionsEverything you need to know about EC2 on one page. HD quality, print-friendly.
Download Free InfographicDestinationCidrBlockThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
DestinationCidrBlockVpnConnectionId