如何设置WAF的弹性Beanstalk?

0

【以下的问题经过翻译处理】 我最近在我的Elastic Beanstalk(EB)环境中添加了WAF Web ACL。每次我启动一个新的EB环境时,负载均衡器都会改变,我必须手动更新Web ACL的"关联AWS资源"。有没有ebextensions配置我可以使用来自动完成这个操作?我找到了一个类似的问题(https://repost.aws/questions/QU_ICNLnvWSka4pjVlQGuW8g/how-to-associate-web-acl-rule-to-eb-alb-on-creation), 但是回答看起来比较复杂

profile picture
ESPERTO
posta 6 mesi fa64 visualizzazioni
1 Risposta
0

【以下的回答经过翻译处理】 如何在“/ebextensions/”下创建一个配置,将WAF与其链接起来?

我理解可以通过创建以下配置来每次将ALB与WAF绑定。

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environment-resources.html

资源:
  WebACLAssociation:
    类型:AWS :: WAFv2 :: WebACLAssociation
    属性:
      ResourceArn:'`{“Ref”:“AWSEBV2LoadBalancer”}`'
      WebACLArn:{Web ACL ARN}

如果此设置不起作用,另一种方法是像您在描述的URL中的答案中那样使用Eventbridge和Lambda。

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/AWSHowTo.eventbridge.html

profile picture
ESPERTO
con risposta 6 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande