serverless-associate-waf icon indicating copy to clipboard operation
serverless-associate-waf copied to clipboard

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

Open tibbe opened this issue 1 year ago • 2 comments

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?

tibbe avatar Apr 26 '23 21:04 tibbe

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

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

SeanCansdale-Zoopla avatar Jun 28 '23 14:06 SeanCansdale-Zoopla

The answer is that HTTP API does not support WAF.

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

SeanCansdale-Zoopla avatar Jun 30 '23 12:06 SeanCansdale-Zoopla