When you use Elastic Compute Service (ECS), you may need to perform various operations on different resources, such as connecting to instances, replacing operating systems, resizing disks, upgrading or downgrading instance configurations, and using snapshots or images. This topic describes common operations on ECS resources.

Limits

  • For information about the usage notes of ECS instances, see Usage notes.
  • For information about the limits of ECS resources, see Limits and View and increase instance quotas.
  • Before you apply for Internet Content Provider (ICP) filings for websites that are deployed on your ECS instances, meet ICP filing requirements for instances. You can apply for only a limited number of ICP filing service identification numbers for each ECS instance. For more information, see Prepare and check the instance and access information.

Create and manage ECS instances

Manage the billing of instances

Improve cost-effectiveness

Create and manage disks

If you want to use a disk as a data disk, you can perform the following steps:
  1. Create a disk.
  2. Attach a data disk.
  3. Initialize a data disk whose size does not exceed 2 TiB on a Linux instance or Initialize a data disk up to 2 TiB in size on a Windows instance.
  4. Create a snapshot to back up data. For more information, see Create a snapshot of a disk.
  5. If the storage capacity of an existing disk cannot meet your requirements, resize the disk. For more information, see the following topics:
  6. If a data error occurs on a disk, use a snapshot created at a specific point in time to roll back the disk. For more information, see Roll back a disk by using a snapshot.
  7. If you want to restore a disk to its initial state, re-initialize the disk. For more information, see Re-initialize a data disk.
  8. Detach a data disk.
  9. Release a disk.

Create and manage snapshots

You can perform the following steps to use a snapshot:
  1. Create a snapshot. You can use one of the following methods to manually or automatically create a snapshot:
  2. View the snapshot size.
  3. Delete snapshots that are no longer needed to save storage space. For more information, see Reduce snapshot fees.

The following section describes the use scenarios of snapshots:

Create and manage custom images

Only custom images can be managed in the ECS console. You can use a custom image to deploy a business environment in a quick manner. You can use one of the following methods to obtain a custom image:

You can export custom images to back up environments. For more information, see Export a custom image

Create and manage security groups

You can clone a security group across regions and network types to simplify business deployment. For more information, see Clone a security group.

If new security group rules disrupt your online business, you can restore all or some of the security group rules. For more information, see Restore security group rules.

Create and attach instance RAM roles

You can perform the following steps to create and attach an instance RAM role.
  1. (Optional) Authorize a RAM user to manage an instance RAM role. For more information, see Authorize a RAM user to manage an instance RAM role.
  2. Create and attach an instance RAM role. For more information, see Attach an instance RAM role to an ECS instance.
  3. Replace the instance RAM role based on your requirements. For more information, see Replace an instance RAM role.

Create and manage SSH key pairs

Create and manage ENIs

You can perform the following steps to create and manage an elastic network interface (ENI).
  1. Create an ENI.
  2. Bind an ENI to an instance or Bind an ENI when you create an instance.
  3. (Optional) Configure a secondary ENI.
  4. Assign secondary private IP addresses.
  5. Unbind an ENI.
  6. Delete an ENI.

Use tags

You can use tags to manage resources to enhance efficiency. You can perform the following steps to use a tag:
  1. Add a tag.
  2. Search for resources by tag.
  3. Delete or remove a tag.

Create and manage launch templates

Launch templates help you create ECS instances that have the identical configurations. You can perform the following steps to use a launch template:
  1. Create a launch template.
  2. Create a launch template version.
  3. Delete a launch template and a template version.

Create and manage deployment sets

Deployment sets help you implement high availability for underlying applications. You can perform the following steps to use a deployment set:
  1. Create a deployment set.
  2. Create an ECS instance in a deployment set.
  3. Change the deployment set of an instance.
  4. Delete a deployment set.

Use Cloud Assistant

Cloud Assistant allows you to send remote commands to ECS instances without the need to use jump servers. You can perform the following steps to use Cloud Assistant:
  1. (Optional) Manually install and configure the Cloud Assistant Agent on some ECS instances. For more information, see Install the .
  2. Create a command.
  3. Run a command.
  4. Check execution results and troubleshoot common issues.