/
Create NAT Gateway

Create NAT Gateway

In order to create NAT Gateway, perform the following steps:

  1.  In the left navigation panel of the Internet Gateways  page, click NAT Gateways

 

A screenshot of a computer

Description automatically generated with medium confidence
  1. On the NAT Gateways page, click Create NAT gateway.

A screenshot of a computer

Description automatically generated with low confidence
  1. On the NAT gateway settings page perform the following steps:

    • Input a Name.

image-20240409-212227.png
  • Select the Public subnet that was created earlier in this guide via the Subnet dropdown.

image-20240409-212804.png
  • Under the Connectivity type header, click the Public bubble.

image-20240409-213125.png
  • Select an existing Elastic IP via the Elastic IP allocation ID dropdown or allocate a new Elastic IP via the Allocate Elastic IP button.

image-20240409-213146.png
  • Click Create NAT gateway to confirm the creation of the NAT gateway.

 

  1. In the left navigation panel of the Nat Gateways page, click Route Tables.

  1. In the top right of the Route tables page, click the Create route table button. Note that this routing table will be used for routing between the public subnet and the Internet Gateway created earlier in this guide.

image-20240409-214215.png
  1. On the Create Route table page, give the Route table a Name.

image-20240409-214149.png
  1. Then, assign the VPC that you created the subnets in earlier in this guide.

image-20240409-214427.png
  1. Then, click the Create route table to confirm the creation of the route table.

image-20240409-215043.png
  1. In the newly created Route table, click the Subnet associations tab located near the bottom of the page.

image-20240409-215106.png
  1. In the Explicit subnet associations panel, click the Edit subnet associations button.

  1. In the Available subnets panel, select the public subnet that was created earlier in this guide.

image-20240409-215143.png
  1. Click Save association to confirm the subnet association.

  1. On the Route table’s primary page, click Edit routes located in the Routes panel.

  1. On the Edit routes page, click the Add route button.

  1. In the new route’s Destination textbox, input the wildcard address 0.0.0.0/0.

image-20240409-215208.png
  1. In the new route’s Target textbox, input the ID of the Internet Gateway that was created earlier in this guide.

image-20240409-215233.png
  1. Click the Save changes button to confirm the changes to the routing table.

image-20240409-215250.png
  1. On the top of the Route table’s page, click Route tables to return to the Route tables page.

  1. In the top right of the Route tables page, click the Create route table button. Note that this routing table will be used for routing between the subnet and the NAT Gateway created earlier in this guide.

image-20240409-215654.png
  1. On the Create Route table page, give the Route table a Name.

image-20240409-215717.png
  1. Then, assign the VPC that you created the subnets in the Subnets section.

image-20240409-215739.png
  1. Then, click the Create route table to confirm the creation of the route table.

image-20240409-215757.png
  1. In the newly created Route table, click the Subnet associations tab located near the bottom of the page.

image-20240409-215915.png
  1. In the Explicit subnet associations panel, click the Edit subnet associations button.

  1. In the Available subnets panel, select the private subnet that was created earlier in the guide.

image-20240409-215930.png
  1. Click Save association to confirm the subnet association.

  1. On the Route table’s primary page, click Edit routes located in the Routes panel.

 

  1. On the Edit routes page, click the Add route button.

  1. In the new route’s Destination textbox, input the wildcard address 0.0.0.0/0.

image-20240409-220001.png
  1. In the new route’s Target textbox, input the ID of the NAT Gateway that was created earlier in this guide.

image-20240409-220019.png
  1. Click the Save changes button to confirm the changes to the routing table.

image-20240409-220037.png
  1. In the Available subnets panel, select the private subnet that was created in the Configure Subnets section.

image-20240409-220101.png