AWS::EC2::ClientVpnRoute

EC2 ClientVpnRoute

Resource Type definition for AWS::EC2::ClientVpnRoute. Specifies a network route to add to a Client VPN endpoint. Each Client VPN endpoint has a route table that describes the available destination network routes. Each route in the route table specifies the path for traffic to specific resources or networks.

Properties

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

Filter:
PropertyTypeFlags
ClientVpnEndpointId
string
RequiredCreate-only
DestinationCidrBlock
string
RequiredCreate-only
Description
string
Create-only
TargetVpcSubnetId
string
Create-only

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
IdstringThe CloudFormation-generated identifier for this Client VPN route, derived from the logical resource id and client request token.

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::ClientVpnRoute

Resources:
  MyResource:
    Type: AWS::EC2::ClientVpnRoute
    Properties:
      ClientVpnEndpointId: "my-clientvpnendpointid"
      DestinationCidrBlock: "my-destinationcidrblock"
      Description: !Ref "AWS::StackName"

Required IAM Permissions

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

create

ec2:CreateClientVpnRouteec2:DescribeClientVpnRoutes

read

ec2:DescribeClientVpnRoutes

delete

ec2:DeleteClientVpnRouteec2:DescribeClientVpnRoutes

list

ec2:DescribeClientVpnRoutes

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
Properties5
Required2
TaggingNot supported
Primary IDId

Supported Operations

CreateReadDeleteList

Immutable After Creation

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

ClientVpnEndpointIdDestinationCidrBlockTargetVpcSubnetIdDescription

External Links