This tutorial guides you through creating a VPC ECS instance and binding an Elastic IP (EIP) to make the ECS instance accessible from the Internet. This is useful when Internet communication is required for a VPC ECS instance, for example hosting a personal blog or website.
Note: A VPC is an isolated private network. By default, cloud product instances in a VPC cannot communicate with the Internet. When creating a VPC ECS instance, a public IP will be allocated to the ECS instance if you set the network bandwidth peak to a value larger than 0. Then, the ECS instance can communicate with the Internet. However, in this tutorial, we do not use the system allocated public IP. As an alternative, we bind an EIP to the ECS instance. Because the EIP can be dynamically bound and unbound to and from an ECS instance, it is more flexible and cost-saving.
Before you begin, ensure that you have an available Alibaba Cloud account. If not, refer to Create an Alibaba Cloud account.
First, you need to create a VPC ECS instance.
VPC provides the default VPC and VSwitch function. Therefore, you can use the default VPC and VSwitch to create an ECS directly.
For details, refer to Create an ECS instance with default VPC and VSwitch.
If you do not want to use the default VPC and VSwitch, you have to create a VPC and VSwitch, and then create an ECS instance in the specified non-default VPC.
For details, refer to Create an ECS instance with non-default VPC and VSwitch.
Then, you need to bind an EIP to the ECS instance to access it from the Internet. For details，refer to Bind an EIP.