Deleting a VPN Connection Route
You can delete a static route of a VPN connection.
For more information about your VPN connection routes, see Getting Information About Your VPN Connections.
This action is for static routing only. If your VPN connection uses dynamic routing, you do not need to create routes.
Click VPC > VPN Connections.
Select the VPN connection from which you want to delete a route.
The VPN connection is selected.
Click the VPN Route tab.
The routes of the selected VPN connection appear.
Select the route you want to delete.
The route is selected.
Click Delete VPN Route .
A confirmation dialog box appears.
Click Delete to validate.
The selected VPN connection route is deleted.
To delete a VPN connection route, use the delete-vpn-connection-route command following this syntax:
$ aws ec2 delete-vpn-connection-route \ --profile YOUR_PROFILE \ --vpn-connection-id vpn-c750ea06 \ --destination-cidr-block 188.8.131.52/24 \ --endpoint https://fcu.eu-west-2.outscale.com
This command contains the following attributes that you need to specify:
profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.
vpn-connection-id: The ID of the VPN connection from which you want to delete a route.
destination-cidr-block: The range of IPs of the corporate network, in CIDR notation.
endpoint: The endpoint corresponding to the Region you want to send the request to.
The specified VPN connection route is deleted.
Deleted resources remain visible for 1 hour.
Corresponding API Method
AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.