Checks whether a resource has a specified tag and the value of the tag is in the specified values.
Scenario
You can use this rule to verify that the value of a tag that is added to a resource meets your requirements. This facilitates subsequent O&M.
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 the specified tag and the value of the tag is in the specified values, the evaluation result is compliant.
If a resource does have the tag or the value of the tag is not in the specified values, 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 | contains-tag |
Rule ID | contains-tag |
Tag | Tag |
Automatic remediation | Not supported |
Trigger type | Configuration change |
Supported resource type |
|
Input parameter |
|
Non-compliance remediation
Add the specified tag with one of the specified values to the resource. For more information, see Add a custom tag.