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
-
Open the Amazon VPC console at https://console.aws.amazon.com/vpc/
. -
In the navigation pane, choose Route tables, and then select the new main route table.
-
Choose Actions, Set main route table.
-
When prompted for confirmation, enter
set
, and then choose OK.
To replace the main route table using the command line
-
replace-route-table-association
(AWS CLI) -
Set-EC2RouteTableAssociation (AWS Tools for Windows PowerShell)
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
-
Open the Amazon VPC console at https://console.aws.amazon.com/vpc/
. -
In the navigation pane, choose Route tables, and then select the route table.
-
From the Subnet associations tab, choose Edit subnet associations.
-
Clear the checkbox for the subnet.
-
Choose Save associations.