| Did this page help you? Yes No Tell us about it... |
Deletes a VPN connection. Use this if you want to delete a VPC and all its associated components. Another reason to use this command is if you believe the tunnel credentials for your VPN connection have been compromised. In that situation, you can delete the VPN connection and create a new one that has new keys, without needing to delete the VPC or virtual private gateway. If you create a new VPN connection, you must reconfigure the customer gateway using the new configuration information returned with the new VPN connection ID.
If you're deleting the VPC and all its associated parts, we recommend you detach the virtual private gateway from the VPC and delete the VPC before deleting the VPN connection.
For more information about Amazon Virtual Private Cloud and VPN connections, go to Adding an IPsec Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User Guide.
The short version of this command is ec2delvpn.
ec2-delete-vpn-connection
vpn_connection_id
| Name | Description | Required |
|---|---|---|
|
|
The ID of the VPN connection you want to delete. Type: String Default: None Example: vpn-44a8938f |
Yes |
| Option | Description |
|---|---|
|
|
Overrides the Region specified in the Default: The Example: |
|
|
Default: The Example: |
|
|
The private key to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
The X.509 certificate to use when constructing requests to Amazon EC2. Default: The value of the Example: |
|
|
Specifies a connection timeout (in seconds). Example: --connection-timeout 30 |
|
|
Specifies a request timeout (in seconds). Example: --request-timeout 45 |
|
|
Displays verbose output by showing the SOAP request and response on the command line. This is particularly useful if you are building tools to talk directly to our SOAP API. |
|
|
Displays column headers in the output. |
|
|
Shows empty columns as |
|
|
Do not display tags for tagged resources. |
|
|
Prints internal debugging information. This is useful to assist us when troubleshooting problems. |
|
|
Displays Help. |
|
|
If Example: |
The command returns a table that contains the following information:
Output type identifier ("VPNCONNECTION")
VPN connection ID
Amazon EC2 command line tools display errors on stderr.
This example deletes the VPN connection with ID vpn-44a8938f.
PROMPT>ec2-delete-vpn-connection vpn-44a8938fVPNCONNECTION vpn-44a8938f