You can bind an EIP address to an ECS instance in any VPC as needed to make the instance accessible to the Internet, and release it whenever the Internet communication is not needed.
The ECS instance to be bound must meet the following requirements:
|Region||The same as the EIP address|
|Status||Running or stopped|
|Quantity||One ECS instance can only be bound with one EIP address at a time|
Log on to the VPC console.
In the left-side navigation pane, click Elastic IP Addresses.
Choose a region. All Elastic IP addresses under the selected region are displayed.
If there is no available EIP instance, click Create EIP.
Note: Ensure that the EIP address and the VPC ECS instance to be bound are in the same region. For more information, see Apply for an EIP address.
Click Bind in the Actions column of the target EIP address.
In the displayed dialog box, follow these steps:
Instance type: Select ECS Instance.
ECS instance: Select the ECS instance to be bound.
After the EIP address is bound to the ECS instance, the ECS instance can communicate with the Internet. Make sure the configured security group rules do not block the Internet access. For more information, see Use secuirty groups to control ECS instances’ access to public cloud for a VPC.