Updated on 2024-11-15 GMT+08:00

Overview of a Tag

Tag Introduction

A tag is a custom label you use to identify, categorize, and search for cloud resources. You can add tags to the following organization resources:

  • Root OU
  • Other OUs
  • Accounts
  • Service control policies (SCPs)
  • Tag policies

You can add tags at the following times:

  • When you create OUs, accounts, SCPs, or tag policies, you can add tags.
  • When you view details about the root OU, other OUs, accounts, SCPs, or tag policies, you can add, update, view, or delete tags on their details pages.

Basics of Tags

Tags help you to identify your cloud resources. When you have many cloud resources of the same type, you can use tags to classify them by dimension (for example, use, owner, or environment).

Figure 1 shows an example of how tags work. In this example, two tags were assigned to each member account. Each tag contains a key and a value defined by the user. The key of one tag is Team, and the key of another tag is Environment.

Figure 1 Example of tags

You can quickly search for and filter specific cloud resources based on the tags added to them. For example, you can define a set of tags for cloud resources in an account to track the owner and usage of each cloud resource, making resource management easier and faster.

Constraints on Using Tags

  • The following basic naming and usage requirements apply to the key and value of a tag:

    Tag key:

    • Cannot be an empty string.
    • Contains 1 to 128 characters.
    • Consists of letters, digits, underscores (_), hyphens (-), and Unicode characters (\u4E00-\u9FFF).

    Tag value:

    • Can be an empty string.
    • Contains 1 to 225 characters.
    • Consists of letters, digits, underscores (_), periods (.), hyphens (-), and Unicode characters (\u4E00-\u9FFF).
  • Each cloud resource can have a maximum of 20 tags.
  • For each resource, each tag key must be unique and can have only one tag value.

Helpful links:

  • Adding a Tag: You can add tags for your OUs, accounts, SCPs, and tag policies.
  • Editing a Tag: You can update the tag keys and values for OUs, accounts, SCPs, and tag policies.
  • Viewing Tag Details: You can view the tags attached to OUs, accounts, SCPs, and tag policies.
  • Deleting a Tag: You can delete tags from OUs, accounts, SCPs, and tag policies.