Elastic Compute Service (ECS) instances can be provisioned by using multiple methods, such as individual provisioning, batch provisioning, high-availability deployment, and automatic cluster creation. You can use these provisioning methods by logging on to the ECS console or by calling API operations to create instances in various scenarios.
Manually create one or more instances
Scenarios: Multiple ECS instances of the same instance type and billing method need to be created in the same zone at a time.
- Use the ECS console:
- Create an instance by using the wizard
Specify configurations in the instance creation wizard.
- Create an ECS instance by using a custom image
Select a custom image within your Alibaba Cloud account and specify other configurations in the instance creation wizard.
- Purchase an ECS instance of the same configuration
Use the configurations of an existing instance and confirm the configurations in the instance creation wizard.
- Create an instance by using a launch template
Select a launch template and confirm the configurations in the instance creation wizard.
- Create an instance by using the wizard
- Call the RunInstances operation:
Number of instances that can be created: If you create instances by using the ECS console, the number of instances that can be created at a time depends on your ECS usage. If you create instances by calling the RunInstances operation, you can create up to 100 instances per call.

You can also call the CreateInstance operation to create an ECS instance. The created instance enters the Stopped state, and you must manually start the instance.
Deploy instances across multiple physical servers to improve availability of the cluster (deployment set)
Scenarios: ECS instances need to be deployed across different physical servers to provide computing power for applications that require high availability and underlying disaster recovery.
Creation method: Create a deployment set and then create ECS instances in the deployment set. You can create instances by using the ECS console or by calling the RunInstances or CreateInstance operation.
Number of instances that can be created: depends on how instances are created. If you create instances by using the ECS console or by calling the RunInstances operation, you can create up to 20 instances at a time. If you create instances by calling the CreateInstance operation, you can create a single instance at a time.
- Up to 20 ECS instances can be created in each deployment set within a zone.
- Only specific ECS instance types are supported. For more information, see Overview.
- Billing methods: Subscription and pay-as-you-go are supported. Preemptible instances are not supported.
- Use the ECS console:
- Call API operations:
Automatically create instance clusters at minimal costs (Auto Provisioning)
Scenarios: Instance clusters that use different billing methods need to be deployed across instance types and zones. This method is suitable for scenarios where stable computing power must be provisioned in a quick manner and preemptible instances are used to reduce costs.
Creation method: Create an auto provisioning group to automatically batch create ECS instances.
Number of instances that can be created: Up to 1,000 instances can be created by an auto provisioning group.
Limits: Pay-as-you-go instances and preemptible instances are supported, whereas subscription instances are not.
- Use the ECS console: Create an auto provisioning group
- Call an API operation: CreateAutoProvisioningGroup
- Best practices for calling an API operation related to Auto Provisioning to batch create ECS instances: Use auto provisioning group-related API operations to create multiple ECS instances at the same time
Automatically create and release instances (Auto Scaling)
Scenarios: Instance clusters that use different billing methods need to be maintained across instance types and zones when service loads fluctuate from time to time.
Creation method: Create a scaling group and a scaling task. The scaling group automatically batch creates or releases ECS instances.
- Up to 1,000 ECS instances can be created during a single scaling activity.
- Up to 1,000 ECS instances can be created by a single scaling group.
Limits: Pay-as-you-go instances and preemptible instances are supported. You can manually add an existing subscription instance to a scaling group, but cannot create a subscription instance in the scaling group.
- Use the ECS console:
- Call API operations: