Using existing buckets creates lambda function with old Node.js

I have an existing S3 bucket and a lambda function.
The trigger event for the lambda is as follows:

events:
- s3:
bucket: ${self:custom.originalImagesBucketName} ← this bucket exists since before
event: s3:ObjectCreated:*
rules:
- prefix: originals/
existing: true ← this will trigger the lambda creation

This will according to this documentation: Serverless Framework - AWS Lambda Events - S3,
generate an extra lambda, that is no problem. The problem is that this lambda is created with Node.js version 16 and AWS are ending their support for Node.js 16 in Lambda on June 12, 2024.

Anyone knows how to set Node.js version for this auto-generated lambda in some way? if no, is there any way to notify the Serverless team that this needs to be updated?

Thanks

I have the same issue. I’m using Node.js 20 with Serverless 3.39.0.
The Cognito triggers are using Node.js 16. I can’t change it.

No updates here? Also seeing the same issue with the existing: true flag. Weirdly, using the flag seemingly deployed that Node.js16 helper lambda in place of my python lambda when running serverless deploy. When the deploy was successful, I went to check it in the console… only to see runtime as node rather than python. None of the other packaged files were visible anywhere :face_with_raised_eyebrow: