'AWS Serverless.yml example of WebACL config

I am trying to deploy lambda functions using serverless, and every time I redeploy I have to re-enable my WAF manually. How can I enable the WAF in my serverless.yml, for the API Gateway? I found this example but it used CloudFront, not the ApiGateway



Solution 1:[1]

According to serverless/issues/5452, serverless does not support this natively.

Until it does, you can allegedly use the serverless-associate-waf plugin.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 jarmod