CreateVpnConnectionRoute - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


Creates a static route associated with 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 Amazon Site-to-Site VPN in the Amazon Site-to-Site VPN User Guide.

Request Parameters

The following parameters are for this specific action. For more information about required and optional parameters that are common to all actions, see Common Query Parameters.


The CIDR block associated with the local subnet of the customer network.

Type: String

Required: Yes


The ID of the VPN connection.

Type: String

Required: Yes

Response Elements

The following elements are returned by the service.


The ID of the request.

Type: String


Is true if the request succeeds, and an error otherwise.

Type: Boolean


For information about the errors that are common to all actions, see Common client error codes.



This example creates a static route to the VPN connection for the VPN connection with the ID vpn-83ad48ea to the destination CIDR block Note that when using the Query API the "/" is denoted as "%2F".

Sample Request &DestinationCidrBlock= &VpnConnectionId=vpn-83ad48ea &AUTHPARAMS

Sample Response

<CreateVpnConnectionRouteResponse xmlns=""> <requestId>4f35a1b2-c2c3-4093-b51f-abb9d7311990</requestId> <return>true</return> </CreateVpnConnectionRouteResponse>

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: