Monday, 15 April 2024

This lab illustrates how an EC2 instance running in a private subnet can be configured to access the internet with the help of a service called Nat gateway.

 

Architecture Diagram

lab-003-arch-01

Overview

In order to achieve the goal of this lab, you will have to go through the following steps:

Step 1 - Run Lab-002

Repeat all of the steps described in lab-002, making sure that any reference to lab-002 are replaced by lab-003.

Step 2 - Create a NAT Gateway

Create a NAT gateway in the public subnet. Note that an elastic public IP must be allocated before a NAT gateway can be created.

lab-003-scrn-01 lab-003-scrn-02 lab-003-scrn-03

Step 3 - Create a Route Table

Create a new route table with the Name tag private and with a default route to the NAT gateway created in step 2.

lab-003-scrn-04 lab-003-scrn-05 lab-003-scrn-06 lab-003-scrn-07 lab-003-scrn-08 lab-003-scrn-09 lab-003-scrn-10

Step 4 - Associate the Route Table to the Private Subnet

Associate the newly created route table to the private subnet.

lab-003-scrn-11 lab-003-scrn-12 lab-003-scrn-13 lab-003-scrn-14

No comments:

Post a Comment