Help Center/ Config/ User Guide/ Resource Compliance/ Built-In Policies/ General Policies/ Resources Have One of the Specified Tags Attached
Updated on 2025-08-25 GMT+08:00

Resources Have One of the Specified Tags Attached

Rule Details

Table 1 Rule details

Parameter

Description

Rule Name

required-tag-exist

Identifier

required-tag-exist

Description

If a resource is missing any specified tag, this resource is non-compliant.

Tag

tag

Trigger Type

Configuration change

Filter Type

Supported Services and Resources

Rule Parameters

  • TagKeys: Indicates the specified tag keys.
  • TagValues: Indicates the specified tag values.

Application Scenarios

After a company moves to the cloud, as their cloud resources keep growing, they usually need to manage hundreds of thousands or millions of resources within one account. Manually classifying these resources is difficult and inefficient. To meet this challenge head on, you will need a cloud service to manage resources automatically.

Tag Management Service (TMS) helps you classify and group resources with tags. You can tag resources by their attributes, such as by department, region, or project. For details, see Principles for Naming Tags.

Solution

Add one or more tags to a single cloud resource or to multiple cloud resources at a time on the TMS console. For details, see Adding Resource Tags.

Rule Logic

  • If TagValues is an empty list and a resource has a specified tag key, the resource is considered attached with the tag.
  • If TagValues is not empty and a resource has a specified tag key and a tag value specified in TagValues, the resource is considered attached with the tag.
  • If a resource has a specified tag attached, the resource is compliant.
  • If a resource does not have a specified tag attached, the resource is non-compliant.