I need set a AWS WAF to AWS API GATEWAY with serverless framework. I tried with this plugin (https://www.serverless.com/plugins/serverless-associate-waf) but don't work.
I added this code with serverless.yml :
plugins:
- serverless-associate-waf
- serverless-plugin-bind-deployment-id
custom:
associateWaf:
name: Development-waf
version: V2 #(optional) Regional | V2
but when I launch deploy, this return an error:
Error: The CloudFormation template is invalid: Unresolved resource dependencies [ApiGatewayRestApi] in the Outputs block of the template