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
- 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.
- Subscription instances:
- Pay-as-you-go instances:
- 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
- Subscription instances:
You can use one of the following methods to renew subscription instances:
- Pay-as-you-go 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:
Improve cost-effectiveness
- 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
- Create a disk.
- Attach a data disk.
- 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.
- Create a snapshot to back up data. For more information, see Create a snapshot of 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.
- Detach a data disk.
- Release a disk.
Create and manage snapshots
- Create a snapshot. You can use one of the following methods to manually or automatically create a snapshot:
- Create a snapshot of a disk.
- Use an automatic snapshot policy to automatically create snapshots on a regular basis. For more information, see Enable or disable an automatic snapshot policy.
- View the snapshot size.
- 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 copy or restore data, you can use a snapshot to create or roll back a disk. For more information, see Create a disk from a snapshot and Roll back a disk by using a snapshot.
- 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
- Create a custom image from a snapshot.
- Create a custom image from an instance.
- Use Packer to create a custom image.
- Copy custom images across regions. For more information, see Copy custom images.
- Share custom images across accounts. For more information, see the "Share a custom image" section in Share or unshare custom images.
- Import custom images.
- Create and import an on-premises image by using Packer.
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
- (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
Use tags
Create and manage launch templates
Create and manage deployment sets
Use Cloud Assistant
- (Optional) Manually install and configure the Cloud Assistant Agent on some ECS instances. For more information, see Install the .
- Create a command.
- Run a command.
- Check execution results and troubleshoot common issues.
Was this helpful?