Adding and deleting rules from an Amazon WAF Classic rule group - Amazon WAF, Amazon Firewall Manager, and Amazon Shield Advanced
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Adding and deleting rules from an Amazon WAF Classic rule group

Note

This is Amazon WAF Classic documentation. You should only use this version if you created Amazon WAF resources, like rules and web ACLs, in Amazon WAF prior to November 2019, and you have not migrated them over to the latest version yet. To migrate your resources, see Migrating your Amazon WAF Classic resources to Amazon WAF.

For the latest version of Amazon WAF, see Amazon WAF.

You can add or delete rules in an Amazon WAF Classic rule group.

Deleting a rule from the rule group does not delete the rule itself. It only removes the rule from the rule group.

To add or delete rules in a rule group (console)
  1. Sign in to the Amazon Web Services Management Console using the Amazon Firewall Manager administrator account that you set up in the prerequisites, and then open the Firewall Manager console at https://console.aws.amazon.com/wafv2/fms.

    Note

    For information about setting up a Firewall Manager administrator account, see Step 2: Create an Amazon Firewall Manager default administrator account.

  2. In the navigation pane, choose Switch to Amazon WAF Classic.

  3. In the Amazon WAF Classic navigation pane, choose Rule groups.

  4. Choose the rule group that you want to edit.

  5. Choose Edit rule group.

  6. To add rules, perform the following steps:

    1. Select a rule, and then choose Add rule to rule group. Choose whether to allow, block, or count requests that match the rule's conditions. For more information on the choices, see How Amazon WAF Classic works. Repeat to add more rules to the rule group.

      Note

      You cannot add rate-based rules to rule group.

    2. Choose Update.

  7. To delete rules, perform the following steps:

    1. Choose the X next to the rule to delete. Repeat to delete more rules from the rule group.

    2. Choose Update.