AWS WAF, AWS Firewall Manager, and AWS Shield Advanced
Developer Guide (API Version 2015-08-24)

Step 4: Create and Apply an AWS Firewall Manager Policy

After you create the rule group, you create an AWS Firewall Manager policy. A Firewall Manager policy contains the rule group that you want to apply to your resources.

To create a Firewall Manager policy (console)

  1. After you create the rule group (the last step in the preceding procedure, Step 3: Create a Rule Group), the console displays the Rule group summary page. Choose Next.

  2. For Name, enter a friendly name.

  3. For Region, choose an AWS Region.

  4. Select a rule group to add, and then choose Add rule group.

  5. A policy has two possible actions: Action set by rule group and Count. If you want to test the policy and rule group, set the action to Count. This action overrides any block action specified by the rule group contained in the policy. That is, if the policy's action is set to Count, those requests are only counted and not blocked. Conversely, if you set the policy's action to Action set by rule group, actions of the rule group in the policy are used. For this tutorial, choose Count.

  6. Choose Next.

  7. If you want to include only specific accounts in the policy, or alternatively exclude specific accounts from the policy, select Select accounts to include/exclude from this policy (optional). Choose either Include only these accounts in this policy or Exclude these accounts from this policy. You can choose only one option. Choose Add. Select the account numbers to include or exclude and choose OK.

    Note

    If you don't select this option, Firewall Manager applies a policy to all accounts in your organization in AWS Organizations. If you add a new account to the organization, Firewall Manager automatically applies the policy to that account.

  8. Choose the type of resource that you want to protect.

  9. If you want to protect only resources with specific tags, or alternatively exclude resources with specific tags, select Use tags to include/exclude resources, type the tags, and then choose either Include or Exclude. You can choose only one option.

    If you enter more than one tag (separated by commas), and if a resource has any of those tags, it is considered a match.

    For more information about tags, see Working with Tag Editor .

  10. Choose Create and apply this policy to existing and new resources.

    This option creates a web ACL in each applicable account within an organization in AWS Organizations, and associates the web ACL with the specified resources in the accounts. This option also applies the policy to all new resources that match the preceding criteria (resource type and tags). Alternatively, if you choose Create but do not apply this policy to existing or new resources, Firewall Manager creates a web ACL in each applicable account within the organization, but doesn't apply the web ACL to any resources. You must apply the policy to resources later.

  11. Choose Next.

  12. Review the new policy. To make any changes, choose Edit. When you are satisfied with the policy, choose Create policy.