Open topic with navigation

# Creating the NAT Gateway

The NAT gateway is required for worker nodes to connect to the Elastic Container Registry (ECR), which is used for downloading OMT and product images.

To create the NAT gateway:

1. Run the following command:
   `aws ec2 create-nat-gateway \
   --allocation-id <EIP allocation Id> \
   --subnet-id <public subnet id>`

Example input and output:

    aws ec2 create-nat-gateway \
    --allocation-id eipalloc-004be822658206abe \
    --subnet-id subnet-0c0ca63f2f793907d

    {
       "NatGateway":{
          "CreateTime":"2021.05-20T20:53:01.000Z",
          "NatGatewayAddresses":[
             {
                "AllocationId":"eipalloc-004be822658206abe"
             }
          ],
          "NatGatewayId":"nat-013416dad7b7656ea",
          "State":"pending",
          "SubnetId":"subnet-0c0ca63f2f793907d",
          "VpcId":"vpc-0143197ca9bd9c117"
       }
    }

1. Record the `NatGatewayId` value in your AWS worksheet.

Next Step: Creating the Route Tables