AWS Lambda now Supports Node.js 14

Rajitha Jayawardena
2 min readFeb 4, 2021

AWS Lambda is a serverless computing service that allows you to run code, build workload-aware cluster scaling logic, maintain event integrations, or manage runtimes without provisioning or managing servers. Users have the ability to run code with Lambda for practically any kind of application or backend service — all with no administration at all. You just have to upload your code as a ZIP file or container image, and Lambda automatically and appropriately allocates compute execution power and executes your code for any traffic scale based on the incoming request or case.

How Lambda Works (Image source — AWS)

However, users can now create AWS Lambda features in Node.js 14 and use its latest features for better performance, such as top-level-await, improved diagnostics, stream API changes, and a revised JavaScript engine. On Amazon Linux 2, the new generation of Amazon Linux, the Lambda functions written in Node.js 14 are running.

Upload the code through the Lambda console to deploy Lambda functions using Node.js 14 and pick the Node.js 14.x runtime. You can also deploy and manage serverless applications written in Node.js 14 using AWS CLI, AWS Serverless Application Model (AWS SAM) and AWS CloudFormation. In addition, to deploy a Node.js 14 feature as a container file, you can also use the Node.js 14 AWS provided base image. Update the code to be compliant with Node.js 14 and then update the function runtime to Node.js 14.x to move existing Lambda functions running earlier versions of Node.js.

Node.js 14 is Node.js’ latest LTS update and will continue to support protection and bug fixes until April 2023. As they become accessible from the Node.js group, Lambda will automatically apply updates to the Node.js 14 managed runtime and to the Node.js 14 AWS provided base picture.

The Node.js 14 runtime is also available in every region where Lambda is available.

--

--