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”.