-
Notifications
You must be signed in to change notification settings - Fork 377
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
Updating lambda functions to nodejs 20 #222
Conversation
Amazing, thanks 🙏 🎉 This looks great and all the unit tests run smoothly as expected 👌 Don't worry about the failing integration tests for now, it's just an auth issue. I'll do some more testing in the next few days and then merge! |
It looks like lambda's starting with nodejs 18 do not ship aws sdk v2 1. Currently the code still uses I suggest that we add a test which tries to run the code on a given aws lambda container 3. This way we should be able to detect whether its going to work in given nodejs environment. |
c0e64f7
to
ff90a49
Compare
Ok I think I should be done now. What I changed:
This should do it. I guess it was a bit more difficult then changing 16 to 20 😆 |
Hey @mettke 👋 apologies for the long wait :) I don't fully understand why we need all of this, since we can control the available SDK with the ad-hoc layer. Wouldn't that work with Node v20? |
It would work yes. But aws sdk v2 will enter maintaince mode "soon":
So the question is, do we want to use the layer now and once sdk v2 is deprecated we migrate to v3, or do we want to use this code now and remove the v2 stuff once its deprecated. Decision is up to you and I'm happy to revert. Of course we can also turn the question around. Instead of using the layer for v2 we could also use the layer for v3 and get nodejs 16 to support sdk v3. This way we can migrate already without having to support both. |
I see, you're right. Then I would:
The reason is that I don't think supporting both SDKs will be that useful in the long term and since you've already mapped all the API calls, it makes sense to just migrate and forget about SDKv2 (big thanks for that, I had been thinking about SDKv3 migration for a while!). |
Sounds reasonable. I removed the last two commits and now only the migration to nodejs20 is in. I will also create a new PR regarding moving to sdkv3 removing sdkv2. |
Fixes: #221
This PR switches NodeJS Version from v16 to v20.
Two additional changes came from me using an Editor which adds a newline on save.