Replace the main route table - Amazon Virtual Private 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).

Replace the main route table

This section describes how to change which route table is the main route table in your VPC.

To replace the main route table using the console
  1. Open the Amazon VPC console at https://console.amazonaws.cn/vpc/.

  2. In the navigation pane, choose Route tables, and then select the new main route table.

  3. Choose Actions, Set main route table.

  4. When prompted for confirmation, enter set, and then choose OK.

To replace the main route table using the command line

The following procedure describes how to remove an explicit association between a subnet and the main route table. The result is an implicit association between the subnet and the main route table. The process is the same as disassociating any subnet from any route table.

To remove an explicit association with the main route table
  1. Open the Amazon VPC console at https://console.amazonaws.cn/vpc/.

  2. In the navigation pane, choose Route tables, and then select the route table.

  3. From the Subnet associations tab, choose Edit subnet associations.

  4. Clear the checkbox for the subnet.

  5. Choose Save associations.