Step 4: Create and apply an Amazon Firewall ManagerAmazon WAF Classic policy
Warning
Amazon WAF Classic support will end on September 30, 2025.
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 web ACLs, see Migrating your Amazon WAF Classic resources to Amazon WAF.
For the latest version of Amazon WAF, see Amazon WAF.
After you create the rule group, you create an Amazon Firewall Manager Amazon WAF policy. A Firewall Manager Amazon WAF policy contains the rule group that you want to apply to your resources.
To create a Firewall Manager Amazon WAF policy (console)
-
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.
-
For Name, enter a friendly name.
-
For Policy type, choose WAF.
-
For Region, choose an Amazon Web Services Region. To protect Amazon CloudFront resources, choose Global.
To protect resources in multiple regions (other than CloudFront resources), you must create separate Firewall Manager policies for each Region.
-
Select a rule group to add, and then choose Add rule group.
-
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.
-
Choose Next.
-
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 then choose OK.
Note
If you don't select this option, Firewall Manager applies a policy to all accounts in your organization in Amazon Organizations. If you add a new account to the organization, Firewall Manager automatically applies the policy to that account.
-
Choose the types of resources that you want to protect.
-
If you want to protect only resources with specific tags, or alternatively exclude resources with specific tags, select Use tags to include/exclude resources, enter 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
. -
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 Amazon 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.
-
Leave the choice for Replace existing associated web ACLs at the default setting.
When this option is selected, Firewall Manager removed all existing web ACL associations from in-scope resources before it associates the new policy's web ACLs to them.
-
Choose Next.
-
Review the new policy. To make any changes, choose Edit. When you are satisfied with the policy, choose Create policy.