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 10 months ago
- asked 2 months ago
- AWS OFFICIALUpdated a month ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 14 days ago
This worked perfectly. To be clear, the WebACLArn value is a string with no surrounding {}.
Thanks so much for this answer.