Posted On: Nov 18, 2022
To deploy Lambda functions using Node.js 18, upload the code through the Lambda console and select the Node.js 18 runtime. You can also use the AWS CLI, AWS Serverless Application Model (AWS SAM) and AWS CloudFormation to deploy and manage serverless applications written in Node.js 18. Additionally, you can also use the AWS-provided Node.js 18 base image to build and deploy Node.js 18 functions using a container image. To migrate existing Lambda functions running earlier Node versions, review your code for compatibility with Node.js 18 and then update the function runtime to Node.js 18.
Node.js 18 is the latest long-term support (LTS) release of Node.js and will be supported for security and bug fixes until April 2025. AWS will automatically apply updates to the Node.js 18 managed runtime and to the AWS-provided Node.js 18 base image, as they become available.