Checks whether a resource has at least one of the specified tags.
Scenario
This rule is used to check whether a resource has at least one of the specified tags. Tags are used in regular resource management scenarios, such as permission isolation, bill splitting, and automatic O&M. We recommend that you establish a tag system for all resources and use tags for resource management.
Risk level
Default risk level: high.
You can change the risk level as required when you apply this rule.
Compliance evaluation logic
If a resource has at least one of the specified tags, the evaluation result is compliant.
If a resource does not have one of the specified tags, the evaluation result is non-compliant. For more information about how to correct the non-compliant configuration, see Non-compliance remediation.
Rule details
Item | Description |
Rule name | required-any-tags |
Rule ID | required-any-tags |
Tag | ECS and Tag |
Automatic remediation | Not supported |
Trigger type | Configuration change |
Supported resource type |
|
Input parameter |
Note You can define at most six tags. Each tag must contain a key and a value. |
Non-compliance remediation
Add one of the specified tags to the resource. For more information, see Add a custom tag.