1 Answers
When a VPC is created a main route table is created with it. This route table controls the routing for all subnets that are not explicitly associated with any other route table
In this example the VPC network was 10.0.0.0/16, and the main route table has only one route 10.0.0.0/16 target local.
Any Subnet created in the VPC uses the main route table, in this case it has route to all other subnets in the VPC
After the creation of the NAT Gateway. He added a new route to the main route to the internet 0.0.0.0/0 target NAT gateway
Because the new route was created in the main route table, it will be used by all subnets including the private subnet
Thanks Ben! Well answered. I completely forgot about main route table. I’ll re watch the lesson with this in mind. Cheers!