This topic describes how to add tags to one or more ApsaraDB RDS for MySQL instances. You can use tags to classify a large number of RDS instances. Each tag consists of a key and a value. You can use tag keys and values to further classify RDS instances.

Limits

  • You can add a maximum of 20 tags to each RDS instance. Each tag must have a unique key. If two tags have the same key, the tag that is created later overwrites the earlier tag.
  • You can add tags to a maximum of 50 RDS instances at a time.
  • RDS instances in different regions do not share the same tag namespace.
  • After you remove a tag from an RDS instance, ApsaraDB RDS checks whether the tag is added to other RDS instances. If the tag is not added to other RDS instances, ApsaraDB RDS deletes the tag.

Procedure

  1. Log on to the RDS management console, click on the left Instances , and then select a region above.
  2. Add tags to your RDS instances.
    • If you want to add tags to a single RDS instance, find the RDS instance. Then, click +Add Label in the Tags column.
      Note After you find the RDS instance, you can also choose More > Edit Tag in the Actions column.
    • If you want to add tags to multiple RDS instances at a time, select these RDS instances. Then, click Edit Tag below the instance list.
  3. Click Create a label, enter the key and value of each tag that you want to create, and then click OK to the right of the value.
    Note If tags are created, you can select each tag that you want to add from the Select the label drop-down list.
  4. If you add tags to multiple RDS instances at a time, specify the The binding way parameter. Then, click OK.
    • If you select Append Tag, ApsaraDB RDS does not remove the existing tags from the RDS instances. ApsaraDB RDS directly adds the specified tags. For example, the key1:value1 tag is added to the RDS instances. In this case, after you add the key2:value2 tag to the RDS instances, a total of two tags are added to these instances. These tags are key1:value1 and key2:value2.
      Note If the key of the new tag is the same as the key of an existing tag, the new tag overwrites the existing tag. For example, you have added the key1:value1 key. In this case, if you append a new tag, key1:value2, the key1:value2 tag overwrites the key1:value1 tag.
    • If you select Overwrite Existing Tag, ApsaraDB RDS removes the existing tags from the RDS instances. Then, ApsaraDB RDS adds the specified tags to the RDS instances. For example, the key1:value1 tag is added to the RDS instances. In this case, after you add the key2:value2 tag to the RDS instances, only one tag is added to these instances. The tag is key2:value2.

Related operations

Operation Description
Create and bind tags Creates and adds tags to one or more RDS instances.