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.
For information about the usage notes of ECS instances, see Usage notes.
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
You can perform the following steps to manage the lifecycle of an ECS instance:
If the instance type or network configuration of your instance cannot meet your business requirements, you can change the instance type, IP address, and maximum public bandwidth.
IP addresses of ECS instances:
If the operating system of your instance cannot meet your requirements, you can replace the operating system. For more information, see Replace the operating system (system disk) of an instance.
You can use the following features to manage ECS instances in a fine-grained manner:
Manage the billing of instances
You can use one of the following methods to renew subscription instances:
You can enable the economical mode for pay-as-you-go instances. For more information, see Economical mode.
Change the billing methods of instances:
You can purchase preemptible instances to reduce costs and use preemptible instances in conjunction with Auto Provisioning for automated provisioning of instances. For more information, see Create an auto provisioning group and Create a preemptible instance.
You can purchase reserved instances to improve the flexibility of paying for instances and reduce costs. For more information, see Purchase reserved instances.
Create and manage disks
If you want to use a disk as a data disk, you can perform the following steps:
Create a snapshot to back up data. For more information, see Create a snapshot for a disk.
If the storage capacity of an existing disk cannot meet your requirements, resize the disk. For more information, see the following topics:
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.
If you want to restore a disk to its initial state, re-initialize the disk. For more information, see Re-initialize a data disk.
Create and manage snapshots
You can perform the following steps to use a snapshot:
Create a snapshot. You can use one of the following methods to manually or automatically create a snapshot:
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:
To deploy an environment, you can use a system disk snapshot to create a custom image and then use the custom image to create instances. For more information, see Create a custom image from a snapshot and Create an ECS instance by using a custom image.
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:
Create custom images
Copy custom images across regions. For more information, see Copy custom images.
Share custom images across accounts. For more information, see Share a custom image.
Import and export custom images
Create and manage security groups
You can perform the following steps to create and manage a security group.
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.
(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.
Create and attach an instance RAM role. For more information, see Attach an instance RAM role to an ECS instance.
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
Create and manage launch templates
Create and manage deployment sets
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:
(Optional) Manually install and configure the Cloud Assistant Agent on some ECS instances. For more information, see Install Cloud Assistant Agent.