Skip to content

Setup AWS WAF (Web Application Firewall)

MCatherine edited this page Aug 11, 2023 · 6 revisions

Create ACL for WAF

Setup AWS WAF in CloudFont

  • Find our cloudfont distribution click "Edit" for setting
    Screen Shot 2023-07-26 at 2 37 00 PM

  • Choose the AWS WAF we created for cloudfont and then save changes
    Screen Shot 2023-07-26 at 2 38 11 PM

Setup AWS WAF in ApiGateway

  • Go to "Stages" and "Settings" for our current version, select the AWS WAF we created for api gateway
    Screen Shot 2023-07-26 at 2 39 02 PM

Setup AWS WAF in Cognito

How to test the WAF

It's hard to test that for CloudFont because of the cache. We could only test the api gateway. So change the default web ACL action from "allow" to "block", and verify the api web page is no longer accessible, and the api call is not working anymore.

Clone this wiki locally