Maybe a silly question, but is it possible to use AWS WAF with Elastic beanstalk or is it already included or am I looking at this entirely wrong?

  • Once EB deploys resources you can view and modify them yourself. After deployment go into the WAF console and take a look. You may need to script adding WAF if it tears it down on the next deployment.
    – Tim
    Mar 1, 2017 at 18:04

3 Answers 3


Yes, it is possible if your environment has an ALB. You can even configure it using .ebextensions, check out blog below.



I'm looking for answer to this question too but I think WAF is only available for CloudFront and for Application Load Balancers.

You should also take a look at this question.


Yes, it is possible. However, you need to use an Application Load Balancer. You cannot use WAF with a single instance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.