Open topic with navigation

# 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

- Tagging the EIP

## Creating the EIP

1. Run the following command:

    aws ec2 allocate-address --domain vpc

2. Record the `AllocationId` value in the AWS worksheet.

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:

- `<Allocation Id>:` Use the Allocation ID of the EIP.

- `<eip-name>:` Assign an EIP name for easier identification.

For example:

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

Next: Creating Subnets