Posted On: Jun 24, 2023

Amazon Lambda now supports Java 17 as 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 Java 17 can take advantage of new language features including Java records, sealed classes and multi-line strings. The Lambda Java 17 runtime also has numerous performance improvements. For more information on Lambda’s support for Java 17, see our product documentation.

To deploy Lambda functions using Java 17, upload the code through the Lambda console and select the Java 17 runtime. You can also use the Amazon CLI, Amazon Serverless Application Model (SAM) and Amazon CloudFormation to deploy and manage serverless applications written in Java 17. Additionally, you can also use the Amazon-provided Java 17 base image to build and deploy Java 17 functions using a container image. To migrate existing Lambda functions running earlier Java versions, review your code for compatibility with Java 17 and then update the function runtime to Java 17.

We will automatically apply updates to the Java 17 managed runtime and to the Amazon-provided Java 17 base image, as they become available.

Visit our product page for more information about Amazon Lambda or sign in to the Amazon Lambda console to get started.