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
[Migrated] HTTP API support - API Gateway V2 #851
Comments
I'm going to take up a bit of space in this issue to contribute some ideas toward getting this resolved. I've got most of the code written, and need to start thinking about how rubber meets road. It would seem to me that:
As some starting place, I'm gonna suggest:
I should have something to share likely in the coming week. And I'll broadly say, having used Zappa fairly reliably for several years now, the regional HTTP APIs do absolutely seem worth the plunge 👍 responsiveness especially, but also in terms of cost. If Zappa ( especially with Feedback welcome on all the fronts — this is a significant change, and vigorous community input will make it a smooth transition. Thanks folks. :) |
So the incoming payload format and response format would are updated for 2.0? From the user perspective, is there an advantage to migrating to 2.0? |
@DilLip-Chowdary-Codes thanks for the nudge. Haven't run into too many hiccups, I'll get this cleaned up and pushed suitable for a public fork :D @monkut To be honest I haven't seen any great upside of 2.0 and I don't know if there's any real threat of e.g. 1.0 being deprecated, but I generally lean toward migrating toward the newer version to help avoid being in the hot seat later if it were to get deprecated or decommissioned. |
@bahoo Thanks for the clarification. Yes, it's good to be ready in case they depreciate it, but in terms of priority if there aren't any clear advantages to 2.0, there's no rush to get it supported. If you have something that support it though, feel free to create a PR and we can move toward getting it in! |
@bahoo when can we expect this PR? Waiting for this feature :) Until then can we have a look at your fork? |
Been sitting on this too long, sorry y'all. This branch is frankly a mess but to the best of my recollection it:
Not documented, janky code and print statements abound, etc. etc. but ! Some starting place: https://github.com/bahoo/Zappa Adding some other, unsolicited, much bigger scope and probably way off topic, color commentary on how this fork / Zappa might evolve, as Lambda has continued to evolve:
Zappa's whole premise was solving those two problems more easily for developers ( you have a function, let's deploy all the other API Gateway tapestry to get you a URL; and let's package / bundle all the Python necessary to get that function running ). I'm extremely bullish on Lambda still. I've leaned a bit away from Zappa specifically for smaller projects, and wondered if either a fork or a successor might be in order to play a bit more nicely with where AWS is taking Lambda. Just haven't had the spoons to look at it very deeply, yet. If there are efforts or discussion underway, here or anywhere 💁🏻♂️ I'm interested in contributing to those long term. |
@bahoo seems like your repo is private, can you check it once? |
Just made public :D ty. |
And sorry I'm going to meander off topic — sticking exclusively to HTTP APIs and eschewing REST APIs and some of the other tapestry Zappa offers, has indeed proved super simple 💁🏻♂️ I am probably going to forge ahead with a minimalist fork / successor project of some sort ! My question to anyone reading this, has that been done already ? Zappa's an amazing, pioneering project, I've fanboyed for years and will definitely continue to keep it in the rotation for tools ( and frankly I would have years of projects to migrate off it if I ever do take such a plunge, lol ). But I do think there's a lane for ( perhaps even, Not seeing anything on a casual Google, if anyone knows or sees anything, @ / link me ? <3 |
@bahoo Sorry for bother you. I am a newbie for zappa and aws api gateway. I used to use rest api gateway , and zappa package to zip a lambda code , and then upload the zip to s3 through the aws console. Now I want to switch the api gateway to http . I have already built a http api gateway using the aws web console, but I always got 404 not found when calling the api through http gateway endpoint. |
Hi there! Unfortunately, this Issue has not seen any activity for at least 90 days. If the Issue is still relevant to the latest version of Zappa, please comment within the next 10 days if you wish to keep it open. Otherwise, it will be automatically closed. |
Hi there! Unfortunately, this Issue was automatically closed as it had not seen any activity in at least 100 days. If the Issue is still relevant to the latest version of Zappa, please open a new Issue. |
Originally from: Miserlou/Zappa#2099 by ryancausey
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: