Setting up and configuring NAT gateways
In this recipe, we will learn how to create and configure NAT gateways, which is the latest and preferred option for NAT in AWS.
Getting ready
To complete the steps within this recipe, we need the following:
- A working AWS account is essential. I will be using the
awsseccb-sandbox-1account that we created in Chapter 1. - Create a VPC, subnets, an IGW, and a route table by following the Creating a bare VPC and setting up public and private subnets recipe from this chapter.
- Launch instances in the public and private subnets with the appropriate security group configurations by following the Creating and configuring a security group recipe and the Getting ready section of the Working with NACLs recipe in this chapter.
How to do it...
We can create a NAT gateway as follows:
- Go to VPC dashboard.
- Click on NAT gateways on the left pane.
- Click on Create NAT gateway.
- Under the NAT gateway settings, type...