Posted On: Feb 3, 2021
You can now author Amazon Lambda functions in Node.js 14 and use its new features, such as top-level-await, enhanced diagnostics, modifications of the streams APIs, and a revised JavaScript engine for better performance. Lambda functions written in Node.js 14 run on Amazon Linux 2, the latest generation of Amazon Linux. To learn more about writing functions in Node.js 14, see the Node.js programming model in the Lambda documentation.
To deploy Lambda functions using Node.js 14, upload the code through the Lambda console and select the Node.js 14.x runtime. You can also use Amazon CLI, Amazon Serverless Application Model (Amazon SAM) and Amazon CloudFormation to deploy and manage serverless applications authored in Node.js 14. Additionally, you can also use the Lambda-provided Node.js 14 image to deploy a Node.js 14 function as a container image. To migrate existing Lambda functions running earlier Node.js versions, update your code to be compatible with Node.js 14 and then update the function runtime to Node.js 14.x.
Node.js 14 is the latest LTS release of Node.js and will be supported for security and bug fixes until April 2023. Lambda will automatically apply updates to the Node.js 14 managed runtime and to the Node.js 14 image, as they become available from the Node.js community.
The Node.js 14 runtime is now available in the Amazon Web Services China (Beijing) Region, operated by Sinnet and Amazon Web Services China (Ningxia) Region, operated by NWCD. Sign in to the Amazon Lambda console to get started.