Posted On: Nov 18, 2019
You can now author your AWS 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 AWS 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 AWS CLI or AWS Lambda console and select the Node.js 12.x runtime. You can also use the AWS 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 all Regions where Lambda is available. Please visit our product page for more information about AWS Lambda or sign in to the AWS Lambda console to get started.