1 Answer
- Newest
- Most votes
- Most comments
0
How about creating a config under "/ebextensions/" that ties the WAF to it?
I thought that ALB could be tied to WAF every time by creating the following configuration.
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-resources.html
Resources:
WebACLAssociation:
Type: AWS::WAFv2::WebACLAssociation
Properties:
ResourceArn: '`{ "Ref" : "AWSEBV2LoadBalancer" }`'
WebACLArn: {Web ACL ARN}
If this setup does not work, I think the only way to do it is to use Eventbridge and Lambda as in the answer at the URL you described.
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.eventbridge.html
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 2 years ago
This worked perfectly. To be clear, the WebACLArn value is a string with no surrounding {}.
Thanks so much for this answer.