associate rest api with WAF

0

Hi team,

is it possible to associate a private REST API GW with an existing AWS WAF knowing that,

  • the REST API GW is created via AWS CDK
  • the AWS WAF is created via the AWS console

how can I associate my rest API gw with the existing waf via CDK?

Thank you!

1 個回答
0
已接受的答案

You need to create a CfnWebACLAssociation in AWS CDK and point it to the previously created web ACL and the resource to protect. Note that AWS WAF requires a Regional web ACL for API Gateway. Therefore, ensure that the web ACL you are associating with the API Gateway is regional. For more details: https://aws.amazon.com/blogs/devops/easily-protect-your-aws-cdk-defined-infrastructure-with-aws-wafv2/

AWS
TonyG
已回答 7 個月前
profile picture
專家
已審閱 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南