Posted On: Nov 18, 2019

You can now author your Amazon Lambda functions in Node.js 12, and use its new features such as the performance improvements in the V8 engine, private class fields, and enhanced stack tracing. Lambda functions written in Node.js 12 run on the latest generation of Amazon Linux, Amazon Linux 2. You can read the Node.js programming model in the Amazon Lambda documentation to learn more about writing functions in Node.js 12. 

Node.js 12 is the latest LTS release of Node.js and will be supported for security and bug fixes until April 2022. Lambda will automatically apply updates made to the Node.js 12 as those become available from the Node.js community. 

To deploy your Node.js code as a Lambda function, upload your code through the Amazon CLI or Amazon Lambda console and select the Node.js 12.x runtime. You can also use the Amazon Serverless Application Model (SAM) to deploy and manage your serverless application authored in Node.js. If you have existing Node.js functions you can migrate them to the new runtime by making any necessary changes to their code for compatibility with Node.js 12, and changing the function’s runtime configuration to “nodejs12.x”. 

The Node.js 12 runtime is available in the Amazon Web Services China (Beijing) Region, operated by Sinnet, and  Amazon Web Services China (Ningxia) Region, operated by NWCD. Please visit our product page for more information about Amazon Lambda or sign in to the Amazon Lambda console to get started.