mikesouza / serverless-associate-waf

Associate a regional WAF with the AWS API Gateway used by your Serverless stack.
MIT License
27 stars 17 forks source link

Does this work with HTTP APIs in addition to REST APIs? #57

Open tibbe opened 1 year ago

tibbe commented 1 year ago

The API Gateway supports a newer HTTP API (https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api.html). When I try to use this plugin I get:

The CloudFormation template is invalid: Unresolved resource dependencies [ApiGatewayRestApi] in the Outputs block of the template

Could it be that this plugin only works with the older style and thus constructs the wrong API Gateway name?

SeanCansdale-Zoopla commented 1 year ago

I also am running into this problem. Is there an answer?

https://www.serverless.com/framework/docs/providers/aws/events/http-api

SeanCansdale-Zoopla commented 1 year ago

The answer is that HTTP API does not support WAF.

https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-vs-rest.html