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.

  1. Log on to the Cloud Config console.
  2. In the left-side navigation pane, click Rules.
  3. On the Rules page, find the rule that you want to modify and click Edit in the Actions column.
  4. In the Properties step, modify the description of the rule and click Next.
  5. 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.
  6. 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.
  7. In the Modify step, click Next.

    For managed rules that allow you to modify the remediation settings, you can select the check box next to Modify and set the remediation method, remediation type, and parameters involved. For more information, see Configure automatic remediation and Configure manual remediation.

  8. In the Preview and Save step, check the configurations and click Submit.
  9. 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.

  1. Log on to the Cloud Config console.
  2. In the left-side navigation pane, click Rules.
  3. On the Rules page, click the required account group tab.
  4. On the account group tab, find the rule that you want to modify and click Edit in the Actions column.
  5. In the Properties step, modify the description of the rule and click Next.
  6. 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.
  7. 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.
  8. In the Modify step, click Next.

    For managed rules that allow you to modify the remediation settings, you can select the check box next to Modify and set the remediation method, remediation type, and parameters involved. For more information, see Configure automatic remediation and Configure manual remediation.

  9. In the Preview and Save step, check the configurations and click Submit.
  10. 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.