Posted On: May 12, 2022
AWS Lambda now supports Node.js 16 as both a managed runtime and a container base image. Developers creating serverless applications in Lambda with Node.js 16 can take advantage of new features such as support for Apple silicon for local development, the timers promises API, and enhanced performance. For more information on Lambda’s support for Node.js 16, see our blog post at Node.js 16.x runtime now available in AWS Lambda.
To deploy Lambda functions using Node.js 16, upload the code through the Lambda console and select the Node.js 16 runtime. You can also use the AWS CLI, AWS Serverless Application Model (AWS SAM) and AWS CloudFormation to deploy and manage serverless applications written in Node.js 16. Additionally, you can also use the AWS-provided Node.js 16 base image to build and deploy Node.js 16 functions using a container image. To migrate existing Lambda functions running earlier Node versions, review your code for compatibility with Node.js 16 and then update the function runtime to Node.js 16.
Node.js 16 is the latest long-term support (LTS) release of Node.js. AWS will automatically apply updates to the Node.js 16 managed runtime and to the AWS-provided Node.js 16 base image, as they become available.
The Node.js 16 runtime is available in all Regions where Lambda is available, except for the AWS China Region (Beijing) Region, operated by Sinnet and AWS China (Ningxia) Region, operated by NWCD"s. Visit our product page for more information about AWS Lambda or sign in to the AWS Lambda console to get started.