Skip to main content
AWS WAF cannot call external services. Use Lambda@Edge on viewer request with Include Body.
  1. Node.js Lambda in us-east-1, deploy as Lambda@Edge.
  2. Viewer request + Include Body (body is not exposed otherwise).
  3. No env vars on Lambda@Edge — load the key from Secrets Manager / SSM at cold start, or bake it at deploy.
  4. CloudFront truncates bodies over the viewer-request size limit.