If existing rules cannot meet your compliance requirements, you can modify the rules
as needed. You can modify both the rules that you created and the managed rules in
compliance packages.
Background information
After you enable a compliance package, you can modify the managed rules in the package.
For more information, see Edit a compliance package.
Use an ordinary account
If you use an ordinary account, you can modify only the rules within your account.
- Log on to the Cloud Config console.
- In the left-side navigation pane, click Rules.
- On the Rules page, find the rule that you want to modify and click Edit in the Actions column.
- In the Properties step, modify the description of the rule and click Next.
- In the Assess Resource Scope step, click Next.
For managed rules that are associated with tags and custom rules, you can modify the
resource types to which the rules apply.
- In the Parameters step, modify the expected value of the input parameter and click Next.
You can modify both the names and expected values of the input parameters of a custom
rule.
- In the Modify step, click Next.
- In the Preview and Save step, check the configurations and click Submit.
- View the modification result.
- Click View Details. On the page that appears, you can view the rule details on different tabs.
- Click Return to Rule List. In the Rules list, you can view the status of the modified rule in the Status column. In normal
cases, the rule is in the Active state.
Use a management account
If you use a management account, you can modify the rules within your account and
those within member accounts in the relevant resource directory.
- Log on to the Cloud Config console.
- In the left-side navigation pane, click Rules.
- On the Rules page, click the required account group tab.
- On the account group tab, find the rule that you want to modify and click Edit in the Actions column.
- In the Properties step, modify the description of the rule and click Next.
- In the Assess Resource Scope step, click Next.
For managed rules that are associated with tags and custom rules, you can modify the
resource types to which the rules apply.
- In the Parameters step, modify the expected value of the input parameter and click Next.
You can modify both the names and expected values of the input parameters of a custom
rule.
- In the Modify step, click Next.
- In the Preview and Save step, check the configurations and click Submit.
- View the modification result.
- Click View Details. On the page that appears, you can view the rule details on different tabs.
- Click Return to Rule List. In the Rules list, you can view the status of the modified rule in the Status column. In normal
cases, the rule is in the Active state.