How to do it...

We can create and configure an AWS WAF for a CloudFront distribution as follows:

  1. Log in to AWS WAF and AWS Shield dashboard. We should see Go to links for AWS WAF, AWS Shield, and AWS Firewall Manager.
Currently, AWS WAF, AWS Shield, and AWS Firewall Manager are accessible from the same dashboard. If AWS decides to separate them, go to the dashboard for AWS WAF and continue with this recipe.
  1. Click on Go to AWS WAF. We should see the new AWS WAF landing page:
AWS currently provides an option to Switch to AWS WAF Classic. We will be using New AWS WAF, which is more flexible than AWS WAF Classic. AWS managed rule groups are ...

Get AWS Security Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.