AWS Fundamentals Logo
AWS Fundamentals
AWS::EC2::VPNConnectionRoute

EC2 VPNConnectionRoute

Specifies 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*.

Properties

2 configurable properties. 2 required. Click a row to see details.

Filter:
PropertyTypeFlags
DestinationCidrBlock
string
RequiredCreate-only
VpnConnectionId
string
RequiredCreate-only

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::EC2::VPNConnectionRoute

Resources:
  MyResource:
    Type: AWS::EC2::VPNConnectionRoute
    Properties:
      DestinationCidrBlock: "my-destinationcidrblock"
      VpnConnectionId: "my-vpnconnectionid"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

read

ec2:DescribeVpnConnections

create

ec2:CreateVpnConnectionRouteec2:DescribeVpnConnections

list

ec2:DescribeVpnConnections

delete

ec2:DeleteVpnConnectionRouteec2:DescribeVpnConnections

Get the EC2 Cheat Sheet

Everything you need to know about EC2 on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceEC2
Properties2
Required2
TaggingNot supported
Primary IDDestinationCidrBlock

Supported Operations

ReadCreateListDelete

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

DestinationCidrBlockVpnConnectionId

External Links