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
-
Click Network/Security > External IPs.
-
Click Allocate .
A confirmation dialog box appears. -
(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.
-
Click Allocate to validate.
The EIP is allocated to your account.
Allocating a Public IP Using Cockpit v2-beta
-
In the Public IPs dashboard, click
Create Public IP.
The CREATE PUBLIC IP dialog box appears. -
(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.
-
Click Create Public IP to validate.
The public IP is allocated.
Allocating a Public IP Using OSC CLI
See the CreatePublicIp command sample in the documentation of the OUTSCALE API. |
Allocating an EIP Using AWS CLI
To allocate an EIP to your account, use the allocate-address command following this syntax:
$ 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 thevpc
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.
{
"PublicIp": "111.1.1.1",
"Domain": "vpc"
"AllocationId": "eipalloc-12345678"
}
The EIP is allocated to your account.
Related Pages
Corresponding API Methods
AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.