We must now create our route table for the private subnet to ensure the private instance knows how to get to the internet via the NAT gateway:
- Navigate to the VPC service under the Networking & Content Delivery category:
- Select Route Tables from the menu on the left and click the blue Create Route Table button.
- Configure the route table name as shown, select your VPC, and click Create:
- Now select your new route table from the list of route tables that will be shown. This will present you with the configuration options of the route table at the bottom of the screen.
- Select the Routes tab | Edit routes | Add route.
- Add the configuration as shown in the Destination field of the second route and select your newly created NAT gateway as the target. This route sends all traffic without a known route to the NAT gateway, which will then send it out to the internet. Once done, click on Save routes:
- Now select Edit subnet...