Posted On: Apr 12, 2023

Amazon Lambda now supports Node.js 18 as both a managed runtime and a container base image in the Amazon Web Services China (Beijing) Region, Operated by Sinnet, and the Amazon Web Services China (Ningxia) Region, Operated by NWCD. Developers creating serverless applications in Lambda with Node.js 18 can take advantage of new features such as an upgrade of the bundled SDK for JavaScript to v3 and improved support for deploying ES Modules using Lambda layers. This release also provides access to Node.js 18 language enhancements, including the experimental ‘fetch’ API. For more information on Lambda’s support for Node.js 18, see our product documentation.

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 Amazon CLI, Amazon Serverless Application Model (SAM) and Amazon CloudFormation to deploy and manage serverless applications written in Node.js 18. Additionally, you can also use the Amazon Web Services-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. Amazon Lambda will automatically apply updates to the Node.js 18 managed runtime and to the Amazon Web Services-provided Node.js 18 base image, as they become available.

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