Elastic Compute Service
Resource | Prerequisites | Description |
Resource | Prerequisites | Description |
ECS instance | Must be in the Stopped state | |
| When you replace instance VPCs or subnets in a batch, all selected instances must be under the same project and in the same availability zone. | - |
| Not added to CLB backend server group | If the ECS instance was added to a CLB backend server, remove the instance from the backend server group first. |
| Not used by other cloud services | - |
| Not associated with High-Availability Virtual IP Address | If an Anycast EIP has been associated, disassociate the Anycast EIP. The High-Availability Virtual IP Address is in Beta. If you need a trial, please contact the account manager. |
| The associated subnet is not attached to a custom route table | If the associated subnet was attached to a custom route table, detach the subnet to the custom route table. |
| No secondary network interface is mounted | If a secondary network interface was mounted, unmount the secondary network interface from the selected instance. |
| The associated primary network interface has not been allocated a secondary private IP address | |
| Not associated with an IPv6 address | If an IPv6 address was allocated to the instance, release the IPv6 address first. The feature of allocating IPv6 addresses to ECS instances is currently in Beta. If you need a trial, please contact the account manager. |
| Not associated with Anycast EIP | If an Anycast EIP has been associated, disassociate the Anycast EIP. Anycast EIP is currently in Beta. If you need a trial, please contact the account manager. |
VPC or subnet | The target VPC and instance are in the same region | If the target VPC and selected instance are not in the same region, create a VPC in the same region as the instance. |
| The target subnet and current subnet are in the same availability zone | If the current subnet and target subnet are not in the same availability zone, create a subnet in the same availability zone as the current subnet. |
Parameter | Description | Sample value |
Parameter | Description | Sample value |
Target VPC | Select a VPC in the same region. tip If you only need the subnet replaced, select the current VPC of the ECS instance. | des-vpc |
Subnet | Select a subnet in the same availability zone as the subnet of the current instance, and then assign an IP address for the selected subnet. You can choose to have the system automatically assign an IP address or manually assign an IP address. | des-subnet |
Target security group | Select a security group. | des-sg |
Parameters | Description | Sample value |
Parameters | Description | Sample value |
Target VPC | Select a VPC in the same region. tip If you only need the subnet replaced, select the current VPC of the ECS instance. | des-vpc |
Subnet | Select a subnet in the same availability zone as the subnet of the current instance, and then assign an IP address for the selected subnet. You can choose to have the system automatically assign an IP address or manually assign an IP address. | des-subnet |
Target security group | Select a security group. | des-sg |