In this recipe, we will learn how to create and configure NAT gateways, which is the latest and preferred option for Network Address Translation (NAT) in AWS.
Setting up and configuring NAT gateways
Getting ready
To complete the steps within this recipe, we need a custom VPC with the following configurations:
- Create a VPC by following the Creating a VPC in AWS recipe. Create some subnets by following the Creating subnets in a VPC recipe.
- An internet gateway and a route table with a route for the internet gateway. Then, we need to associate our public subnet with that route table, as shown in the Configuring an internet gateway and a route table for internet access recipe.
- Launch instances in the public and private subnets...