How it works...
NAT allows instances in private subnets to talk to the internet and perform activities such as patching, downloading software, and more. NAT is the process of remapping the IP address of a packet by modifying its IP header while it's in transit. AWS provides two ways to achieve NAT with VPCs: NAT gateways and NAT instances. In this recipe, we learned how to create and configure NAT instances. We launched our NAT instance from a community AMI. Then, we searched for NAT in the Community AMIs tab to list all the NAT instance AMIs. AWS recommends using the latest one that's available.
After creating the NAT instance, we disabled the source/destination check for our NAT instance. By default, AWS expects an EC2 instance to be either ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access