Allocating an EIP to Your Account

You can allocate an External IP (EIP) to your account that you can then associate with an instance or a network interface.

You also need EIPs to create NAT gateways. For more information, see Creating a NAT Gateway.

Allocating an EIP Using Cockpit v1

  1. Click Network/Security > External IPs.

  2. Click Allocate .
    A confirmation dialog box appears.

  3. (optional) In the Name field, type a name for the EIP.

    This action adds a Name tag of 255 characters maximum. You can use any character, including accented letters.

  4. Click Allocate to validate.
    The EIP is allocated to your account.

Allocating a Public IP Using Cockpit v2-beta

  1. In the Public IPs dashboard, click IconAddFull Create Public IP.
    The CREATE PUBLIC IP dialog box appears.

  2. (optional) In the Name field, type a name for the public IP.

    This action adds a Name tag of 255 characters maximum. You can use any character, including accented letters.

  3. Click Create Public IP to validate.
    The public IP is allocated.

Allocating an EIP Using AWS CLI

To allocate an EIP to your account, use the allocate-address command following this syntax:

Request sample
$ aws ec2 allocate-address \
    --profile YOUR_PROFILE \
    --domain vpc \
    --endpoint https://fcu.eu-west-2.outscale.com

This command contains the following attributes that you need to specify:

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • domain: The domain in which the EIP is allocated (standard | vpc). The domain is for information only and does not modify the behavior of the EIP. Some programs and scripts may use this attribute for compatibility.

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The allocate-address command returns the following elements:

  • PublicIp: The EIP.

  • Domain: The domain of the EIP. This element is for information only.

  • AllocationId: If you specified the vpc domain, the ID of the allocation of the EIP.

    If you did not specify the domain, the ID of the allocation is available in the information of the EIP. For more information, see Getting Information About Your EIPs.

Result sample
{
    "PublicIp": "111.1.1.1",
    "Domain": "vpc"
    "AllocationId": "eipalloc-12345678"
}

The EIP is allocated to your account.

Related Pages

Corresponding API Method

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.