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

ItemDescription
Rule nameresource-name-regex-match
Rule identifierresource-name-regex-match
TagResourceName and Regex
Automatic remediationNot supported
Trigger typeConfiguration change
Supported resource typeAll resources
Input parameterpattern

Incompliance remediation

Modify resource names based on regular expressions. For more information, see GetDiscoveredResource.