Create the External IP Address

The external IP address (EIP) is required for the NAT Gateway, used by the worker nodes, to access the Elastic Container Registry (ECR). In this step, you will create the EIP and then tag it.

 

Creating the EIP

  1. Run the following command:
  2. aws ec2 allocate-address --domain vpc
  3. Record the AllocationId value in the AWS worksheet.
  4. For example:

    {
    "PublicIp": "18.194.179.100",
    "AllocationId": "eipalloc-004be822658206abe",
    "PublicIpv4Pool": "amazon",
    "NetworkBorderGroup": "eu-central-1",
    "Domain": "vpc"
    }

Tagging the EIP

Run the following command:

aws ec2 create-tags \
--resources <Allocation Id> \
--tags Key=Name,Value=<eip-name>

Where:

For example:

aws ec2 create-tags \
--resources eipalloc-004be822658206abe \
--tags Key=Name,Value=srgdemo-eip

Next: Creating Subnets