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
Update AWS Lambda runtime to nodejs18.x #12311
base: v2
Are you sure you want to change the base?
Conversation
Waiting for this. |
Lambda upgraded from v2 to v3 of AWS SDK, so I think this is a bit more work. https://aws.amazon.com/blogs/compute/node-js-18-x-runtime-now-available-in-aws-lambda/ Also maybe go directly to nodejs20.x while we're at it? |
Looks like discussion about the AWS Javascript SDK v3 at #11920 is ongoing. In relation to this, it looks like https://github.com/serverless/serverless/blob/main/lib/plugins/aws/custom-resources/resources/s3/handler.js is the file that gets deployed and run and I think https://github.com/serverless/serverless/blob/main/lib/plugins/aws/custom-resources/resources/utils.js is the only file that it references (indirectly at that) that uses the AWS Javascript SDK v2. |
The correct fix is here => #12146 EDIT: I didn't notice this PR targets v2 ... but still more changes are required |
I inadvertently created a duplicate of this, which I have now closed: #12334 Testing of this change is working in our staging environments. We obviously need this before the node 16 runtime reaches it's end of life at AWS. I notice someone else has just asked for this on the issue: #12310 (comment) - AWS are emailing reminding people that the node 16 eol is coming - so lots of people are looking at this I guess. I'm not clear what else needs to be done here? Edit: This is very similar to #12055 which bumped the version from 12 to 16. |
I'm also looking at the comment above re AWS Javascript SDK v3 and I'm wondering if that is relevant for the v2 branch this PR is targeting? |
@malcyL afaik it is ... whether it is v2 or v3, if it runs on the node engine >=18 then it requires aws sdk v3 |
Is there an estimated timeline for when this change will be available? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requires AWS SDK v3, should refer to #12146
Updated AWS SDK v3 dependencies accordingly |
AWS notified about Node.js v16 deprecation on AWS Lambda runtime. This PR upgrades AWS Lambda runtime to Node.js v18
Closes: #12310