Updated on 2022-02-22 GMT+08:00

Adding a Tag

Scenario

Tags are used to identify CMKs. You can add tags to CMKs so that you can classify CMKs, trace them, and collect their usage status according to the tags.

KMS does not support adding tags to Default Master Keys.

Prerequisites

You have obtained an account and its password for logging in to the management console.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. Choose Security > Key Management Service. The Key Management Service page is displayed.
  4. Click the alias of the desired CMK to view its details.
  5. Click Tags to go to the tag management page.

    Figure 1 Managing tags

  6. Click Add Tag. In the Add Tag dialog box, enter the tag key and tag value. Table 1 describes the parameters.

    Figure 2 Adding a tag

    If you want to delete a tag to be added when adding multiple tags, you can click Delete in the row where the tag to be added is located to delete the tag.

    Table 1 Tag parameters

    Parameter

    Description

    Value

    Example Value

    Tag key

    Name of a tag.

    The same tag (including tag key and tag value) can be used for different CMKs. However, under the same CMK, one tag key can have only one tag value.

    A maximum of 20 tags can be added for one CMK.

    • Mandatory.
    • Each tag key must be unique under the same CMK.
    • Contains a maximum of 36 characters.
    • Only digits, letters, underscores (_), and hyphens (-) are allowed.

    cost

    Tag value

    Value of the tag

    • This parameter can be empty.
    • Can contain a maximum of 43 characters.
    • Only digits, letters, underscores (_), and hyphens (-) are allowed.

    100

  7. Click OK to complete.