New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP API support - API Gateway V2 #2099
Comments
Given that Amazon are touting 50% lower latency and 70% lower cost for the new version of the API, it would be great to see support for this. |
I modified Zappa to work for v2 for myself, although only for payload version 1.0. I'm unsure if Zappa would target using payload version 1.0 or 2.0. 1.0 would mean less code would be required for supporting both API GW v1 and v2. The major changes required for the handler/wsgi code were
For my case I simply created a v2 gateway manually, but config and automatic creation of the api would of course be needed for proper support. |
There is a configuration setting You can specify if the event should be in format of API GW v2.0 or in the format of API GW v1. So by using the you can create a v2 API GW but get a out of the box compatible format with zappa. |
It looks like API Gateway has a new class of APIs called HTTP APIs which more closely fit with what Zappa aims to do. It might be good to start working on implementing support for this in Zappa.
https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api.html
The way Zappa deploys API gateways would have to be updated to also support this kind of API.
It also looks like there's a new 2.0 version of the event format sent to the lambda and the response format from lambda to the API gateway. This will have to be pinned to use the 1.0 formats until support for the 2.0 formats are added in the lambda handler provided by Zappa.
https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
The text was updated successfully, but these errors were encountered: