S3 existing bucket creates lambda using NodeJS 18 (which is EOL soon) (original) (raw)

Hi-
I’ve got a project currently deployed on AWS with serverless v3 (just updated to 3.34.0), and it’s using an S3 bucket event trigger in an existing bucket, like this:

    events:
      - s3:
          bucket: ${self:custom.s3.bucket}
          event: s3:ObjectCreated:*
          existing: true

This is creating a separate lambda using NodeJS 18, and AWS has started sending out notifications about NodeJS 18 EOL in the next few months.
Is there any way to change the runtime for this, or does that change need to be done in a new serverless v3 release?
Thanks in advance.

avensis May 29, 2025, 12:24am 2

Yes, you can definitely change the runtime of your Lambda function without needing to update Serverless Framework to a newer version, provided that your current version (v3.34.0) is compatible with the runtime you want to use (for example, Node.js 20, which is now supported on AWS).

192.168.100.1 192.168.1.1

I just want to say you should probably get off of Serverless version 3 as soon as you can. It’s no longer supported: Serverless Framework - Upgrading to v4