Remediation
From Command Lineβ
Associate an AWS WAF Web ACL with an API Gateway API Stageβ
Associate an AWS WAF Web ACL with an API Gateway stage by running the associate-web-acl command:
aws wafv2 associate-web-acl \
--web-acl-arn {{web-acl-arn}} \
--resource-arn {{api-gateway-stage-arn}}
Replace {{web-acl-arn}} with the ARN of your Web ACL and {{api-gateway-stage-arn}} with the ARN of your API Gateway stage.