This topic describes how to create an elastic IP address (EIP) and associate the EIP with an Elastic Compute Service (ECS) instance. This way, the ECS instance can access the Internet.
Prerequisites
Procedure

Apply for an EIP
An EIP is a public IP address that you can purchase and use as an independent resource. Before you get started, you must apply for an EIP.
Associate the EIP with an ECS instance
You can associate the EIP with an ECS instance that is deployed in a virtual private cloud (VPC). After the ECS instance is associated with an EIP, the ECS instance can communicate with the Internet.
Test network connectivity
After you associate the EIP with the ECS instance, you can check whether the ECS instance can access the Internet.