- Newest
- Most votes
- Most comments
The short answer is yes, WAF will evaluate requests before they reach your CloudFront cache. Whilst we don't explicitly describe this scenario in our docs, you can validate it via other documented items, specifically, how WAF works with CloudFront lambda@edge functions. Our docs here call out the fact that WAF inspects requests before they reach lambda@edge functions:
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-edge-event-request-response.html "If you're using AWS WAF, the Lambda@Edge viewer request is executed after any AWS WAF rules are applied."
And you can see here that the triggers for lambda@edge can be set both before (e.g. on viewer request) and after caching:
answered a year ago
You can find this information implicitly and explicitly in AWS documentation. A good starting point is the "How CloudFront Works" or "AWS WAF integration with CloudFront" sections. For example, the AWS documentation states: "When you associate a web ACL with a CloudFront distribution, AWS WAF starts to evaluate all incoming requests at the edge locations before they reach your web application."
Here's a relevant link to the AWS WAF Developer Guide, which touches on this integration: https://docs.aws.amazon.com/waf/latest/developerguide/cloudfront-features.html
Hi Bhawesh. Thank you for the prompt response.
Could you please provide a reference to your line—"When you associate a web ACL with a CloudFront distribution, AWS WAF starts to evaluate all incoming requests at the edge locations before they reach your web application."—?
Relevant content
asked 10 months ago
asked a year ago
- AWS OFFICIALUpdated a year ago

Hi mofaized. Thank you for your detailed answer! From your references I was able to conclude that: