As the number of cloud resources increases, the difficulty in managing the resources also increases. For example, you may be unable to batch collect cost statistics about and perform O&M and monitoring on multiple cloud resources that serve the same purpose or belong to the same application category or organization to ensure that the resources are properly used and efficiently managed. To efficiently manage your resources, you can use tags to classify the resources. Tags are an important grouping tool that helps you in the horizontal management of personnel, finances, and materials and the fine-grained management of resources. This topic describes how to modify the tags of an Elastic Compute Service (ECS) instance.
Background information
For information about how to use tags, the resources that support tags, and the limits on tags, see Overview of tags and Tag limits.
Procedure
Log on to the ECS console.
In the left-side navigation pane, choose .
In the top navigation bar, select the region and resource group to which the resource belongs.
Find the instance that you want to manage. In the Tag column, move the pointer over the icon and perform one of the following operations:
If tags are not added to the instance, click Add.
If tags are added to the instance, click Edit.
In the Configure Tags dialog box, select or create tags and then click OK.
NoteYou can remove the tags that are no longer needed.
References
After you add tags to your instances, you can filter the instances by tag to perform different O&M operations. For example, you can control the executions of Cloud Assistant commands based on tags, implement fine-grained access control by using tags, or use OOS to batch start multiple ECS instances to which specific tags are added. For more information about how to use tags, see Best practices for tags.
You can also use the CloudOps Orchestration Service (OOS) custom templates to modify a tag value for hundreds of cloud resources at the same time. For more information, see Use OOS to modify a tag value of multiple resources.