If the resource name matches the specified regular expression, the evaluation result is Compliant.
Scenarios
You can use regular expressions to standardize the names of your resources, which can facilitate centralized management.
Risk level
Default risk level: low.
When you apply this rule, you can change the risk level based on your business requirements.
Compliance evaluation logic
- If the resource name matches the specified regular expression, the evaluation result is Compliant.
- If the resource name does not match the specified regular expression, the evaluation result is Incompliant. For more information about how to remediate an incompliant configuration, see the "Incompliance remediation" section of this topic.
Rule details
Item | Description |
---|---|
Rule name | resource-name-regex-match |
Rule identifier | resource-name-regex-match |
Tag | ResourceName and Regex |
Automatic remediation | Not supported |
Trigger type | Configuration change |
Supported resource type | All resources |
Input parameter | pattern |
Incompliance remediation
Modify resource names based on regular expressions. For more information, see GetDiscoveredResource.