Amazon Virtual Private Cloud
Transit Gateways

Transit Gateway Route Tables

Use transit gateway route tables to configure routing for your transit gateway attachments.

Create a Transit Gateway Route Table

To create a transit gateway route table using the console

  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. On the navigation pane, choose Transit Gateway Route Tables.

  3. Choose Create Transit Gateway Route Table.

  4. (Optional) For Name tag, type a name for the transit gateway route table. This creates a tag with the tag key "Name", where the tag value is the name that you specify.

  5. For Transit Gateway ID, select the transit gateway for the route table.

  6. Choose Create Transit Gateway Route Table.

To create a transit gateway route table using the AWS CLI

Use the create-transit-gateway-route-table command.

Associate a Transit Gateway Route Table

You can associate a transit gateway route table with a transit gateway attachment.

To associate a transit gateway route table using the console

  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. On the navigation pane, choose Transit Gateway Route Tables.

  3. Select the route table.

  4. In the lower part of the page, choose the Associations tab.

  5. Choose Create association.

  6. Choose the attachment to associate and then choose Create association.

To associate a transit gateway route table using the AWS CLI

Use the associate-transit-gateway-route-table command.

Delete an Association for a Transit Gateway Route Table

You can disassociate a transit gateway route table from a transit gateway attachment.

To disassociate a transit gateway route table using the console

  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. On the navigation pane, choose Transit Gateway Route Tables.

  3. Select the route table.

  4. In the lower part of the page, choose the Associations tab.

  5. Choose the attachment to disassociate and then choose Delete association.

  6. When prompted for confirmation, choose Delete association.

To disassociate a transit gateway route table using the AWS CLI

Use the disassociate-transit-gateway-route-table command.

View Transit Gateway Route Tables

To view transit gateway route tables using the console

  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. On the navigation pane, choose Transit Gateway Route Tables.

  3. To find a specific route table or set of tables, enter all or part of the name, keyword, or attribute in the filter field.

Choose a route table to display the settings for it.

To view transit gateway route tables using the AWS CLI

Use the describe-transit-gateway-route-tables command.

Propagate a Route to a Transit Gateway Route Table

Use route propagation to add a route from a route table to an attachment.

To propagate a route to a transit gateway attachment route table

  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. On the navigation pane, choose Transit Gateway Route Tables.

  3. Select the route table for which to create a propagation.

  4. Choose Actions, Create propagation.

  5. On the Create propagation page, choose the attachment.

  6. Choose Create propagation.

  7. Choose Close.

To enable route propagation using the AWS CLI

Use the enable-transit-gateway-route-table-propagation command.

Disable Route Propagation

Remove a propagated route from a route table attachment.

To disable route propagation using the console

  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. On the navigation pane, choose Transit Gateway Route Tables.

  3. Select the route table to delete the propagation from.

  4. On the lower part of the page, choose the Propagations tab.

  5. Select the attachment and then choose Delete propagation.

  6. When prompted for confirmation, choose Delete propagation.

To disable route propagation using the AWS CLI

Use the disable-transit-gateway-route-table-propagation command.

View Route Table Propagations

To view route propagations using the console

  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. On the navigation pane, choose Transit Gateway Route Tables.

  3. Select the route table to view propagations for.

  4. On the lower part of the page, choose the Propagations tab.

To view route propagations using the AWS CLI

Use the get-transit-gateway-route-table-propagations command.

Create a Static Route

You can create a static route for an attached VPC or VPN connection, or you can create a blackhole route that drops traffic that matches the route.

To create a static route using the console

  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. On the navigation pane, choose Transit Gateway Route Tables.

  3. Select the route table for which to create a route.

  4. Choose Actions, Create route.

  5. On the Create route page, enter the CIDR block for which to create the route.

  6. Choose the attachment for the route.

  7. Choose Create route.

To create a blackhole route using the console

  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. On the navigation pane, choose Transit Gateway Route Tables.

  3. Select the route table for which to create a route.

  4. Choose Actions, Create route.

  5. On the Create route page, enter the CIDR block for which to create the route, and then choose Blackhole.

  6. Choose Create route.

To create a static route or blackhole route using the AWS CLI

Use the create-transit-gateway-route command.

Delete a Static Route

You can create a static route for an attached VPC or VPN connection, or you can create a blackhole route that drops traffic that matches the route.

To delete a static route using the console

  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. On the navigation pane, choose Transit Gateway Route Tables.

  3. Select the route table for which to delete the route, and choose Routes.

  4. Choose the route to delete.

  5. Choose Delete route.

  6. In the confirmation box, choose Delete route.

To delete a static route using the AWS CLI

Use the delete-transit-gateway-route command.

Export Route Tables to Amazon S3

You can export your route tables to an Amazon S3 bucket for backup or accessing them to import to another transit gateway.

To export transit gateway route tables using the console

  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. On the navigation pane, choose Transit Gateway Route Tables.

  3. Choose the route table that includes the routes to export.

  4. Choose Actions, Export routes.

  5. On the Export routes page, for S3 bucket name, type the name of the S3 bucket.

  6. To filter the routes exported, specify filter parameters in the Filters section of the page.

  7. Choose Export routes.

Delete a Transit Gateway Route Table

To delete a transit gateway route table using the console

  1. Open the Amazon VPC console at https://console.aws.amazon.com/vpc/.

  2. On the navigation pane, choose Transit Gateway Route Tables.

  3. Select the route table to delete.

  4. Choose Actions, Delete route table.

  5. Choose Delete again to confirm the deletion.

To delete a transit gateway route table using the AWS CLI

Use the delete-transit-gateway-route-table command.