AWS WAF in front of a CloudFront download service and an ALB-fronted Kubernetes app: managed rules, geo-blocking, rate limits, custom rules, a migration off WAF Classic, and what the Splunk dashboards actually showed.
A web application firewall is a bouncer. It stands at the door, looks at every request, and decides who gets in. The trouble with bouncers is that a bad one either lets everyone through or throws out your best customers, and you only find out which when someone complains.
I've set up AWS WAF in front of two quite different things, moved an old WAF Classic setup over to WAFv2, and wired the logs into Splunk so we could see what the bouncer was actually doing. Over that time it blocked more than 1,000 requests from regions we didn't serve and caught around 50 DDoS attempts before they reached the app. This post is how that was put together, what AWS gives you out of the box, and where we had to write our own rules.
No employer names, account IDs or hostnames here.…