Node.js Layer for AWS Lambda

Use the latest version of Node on AWS Lambda

Don't miss low-impact performance monitoring for your AWS Lambda functions – create a free NodeSource account.

Node Version
AWS Region

Install Type
  1. If you haven't already, install the AWS CLI

  2. With your desired region and Node.js version chosen above, replace myFunction with your function's name and run this command in the AWS CLI to create a new function:

    If you want to update an existing function to use this layer, run this command:

  3. If you're interested in monitoring the performance of AWS Lambda functions and the security of installed modules and dependencies, create a free NodeSource account.

    Sign Up

These instructions assume you use the Serverless Framework to develop and deploy your Lambda functions.

  1. If you haven't already, install Serverless and watch this video to set up AWS permissions

  2. With your desired region and Node.js version chosen above, replace your project's serverless.yml with this information:

    👉 Copy and paste the above in place of your function's existing template.yml

  3. Deploy and then invoke your function:

  4. If you're interested in monitoring the performance of AWS Lambda functions and the security of installed modules and dependencies, create a free NodeSource account.

    Sign Up

Sign up for tips and news about Node.js in the cloud