Skip to content

AWS callback warning #700

Description

@amoffat

In my AWS logs for a S3 Bucket notification lambda that uses serverless-express, I get the following warning:

AWS Lambda plans to remove support for callback-based function handlers starting with Node.js 24. You will need to update this function to use an async handler to use Node.js 24 or later. For more information and to provide feedback on this change, see https://github.com/aws/aws-lambda-nodejs-runtime-interface-client/issues/137. To disable this warning, set the AWS_LAMBDA_NODEJS_DISABLE_CALLBACK_WARNING environment variable.

This is how I'm creating the request handler:

export const handler = serverlessExpress({
  app,
  eventSourceRoutes: {
    AWS_S3: "/s3",
  },
});

Seems like serverless-express may need some internal update to be compatible with the new AWS updates?

Edit>> My version is 4.16.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions