We can create a NAT gateway as follows:
- Go to VPC service on the dashboard.
- Click on NAT Gateways.
- Click on Create NAT Gateway.
- For Subnet, select our public subnet.
- Click on Create New EIP for Elastic IP Allocation ID. This should populate the allocation ID for an Elastic IP. If we click inside the input box, we will see the actual Elastic IP.
The filled page should look as follows:
- Click on Create a NAT Gateway. If successful, it will provide options for Edit route tables or Close.
- Click on Edit route tables.
- Select the main route table.
- Go to the Routes tab.
- Click on Edit routes and do the following:
- Add 0.0.0.0/0 as ...