Adding a Rule Based on a Built-in Policy
Scenarios
This section describes how to add a rule based on a built-in policy.
Constraints and Limitations
- You can add up to 500 rules in an account.
- The resource recorder must be enabled for adding, modifying, enabling, or triggering a rule. If the resource recorder is disabled, you can only view, disable, and delete rules.
To evaluate resources with rules, you need to enable the resource recorder. Resource evaluation is subject to the following rules:
- If the resource recorder is disabled, no resources will be available for evaluation. You can still view historical evaluation results.
- If the resource recorder is enabled and a monitoring scope is configured, only resources within the monitoring scope can be evaluated.
For details about how to enable and configure the resource recorder, see Configuring the Resource Recorder.
Procedure
- Log in to the Config console.
- In the navigation pane on the left, choose Resource Conformance.
- In the Rules tab, click Add Rule.
- Configure basic details, and click Next.

Table 1 Parameters of basic configurations Parameter
Description
Policy Type
Select Built-in policy.
Built-in policies are provided by Config. You can select a built-in policy to quickly add a rule. You can also search for a built-in policy by policy name or tag.
Rule Name
By default, the rule name is consistent with the predefined policy name. Rule names must be unique.
A rule name can contain digits, letters, underscores (_), and hyphens (-) and cannot exceed 64 characters.
Description
By default, the rule description is the same as the selected predefined policy description. You can also customize the rule description.
A rule description can contain any types of characters and cannot exceed 512 characters.
- On the displayed Configure Rule Parameters page, configure required parameters and click Next.

Table 2 Parameter descriptions Parameter
Description
Trigger Type
Conditions under which rules are triggered.
Possible values are:
- Configuration change: The rule is triggered when a specific cloud resource is changed.
- Periodic execution: The rule is triggered at a specific frequency.
NOTE:
You cannot modify the Trigger Type of predefined policies. The Trigger Type varies depending on different predefined policies.
Filter Type
Resource types to be evaluated.
Possible types are:
- Specific resources: Resources of a specific type will be evaluated.
- All resources: All resources from your account will be evaluated.
This parameter is mandatory only when Trigger Type is set to Configuration change.
Resource Scope
If you set Filter Type to Specific resources, you need to specify a resource scope.
- Service: The service that the resource belongs to.
- Resource type: The resource type
- Region: The region where the resource resides.
(Optional) Filter Scope
Specific resources whose configurations will be evaluated. You can enable this option and search for or filter out resources by resource ID or tag.
This parameter is optional for a rule whose trigger type is configuration change.
Execute Every
How often a rule is triggered.
Available options: 1 hour, 3 hours, 6 hours, 12 hours, 24 hours.
This parameter is mandatory only when Trigger Type is set to Periodic execution.
Configure Rule Parameters
Parameters of a built-in policy.
For example, if you select the required-tag-check policy, you need to specify a tag, so that resources that do not have the tag will be determined as non-compliant.
Some default policies, such as volumes-encrypted-check, do not require Configure Rule Parameters.
- On the Confirm page displayed, confirm the rule information and click Submit.

After you add a rule, the first evaluation is automatically triggered immediately.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.