Edit static routes for a Site-to-Site VPN connection - AWS Site-to-Site VPN

Edit static routes for a Site-to-Site VPN connection

For a Site-to-Site VPN connection on a virtual private gateway that's configured for static routing, you can add or remove static routes from your VPN configuration.

To add or remove a static route using the console
  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. In the navigation pane, choose Site-to-Site VPN connections.

  3. Select the VPN connection.

  4. Choose Edit static routes.

  5. Add or remove routes as needed.

  6. Choose Save changes.

  7. If you have not enabled route propagation for your route table, you must manually update the routes in your route table to reflect the updated static IP prefixes in your VPN connection. For more information, see (Virtual private gateway) Enable route propagation in your route table.

  8. For a VPN connection on a transit gateway, you add, modify, or remove the static routes in the transit gateway route table. For more information, see Transit gateway route tables in Amazon VPC Transit Gateways.

To add a static route using the command line or API
To delete a static route using the command line or API