NOTE: This solution has been integrated into the AWS WAF Security Automations, and is now maintained in that repository: https://github.com/awslabs/aws-waf-security ...