SAM CLI supports additional Java AL2023 runtimes
Introduced 2026-07-23 · score 0.94
HOW TO USE IT
If a SAM function uses Java 8, 11, or 17 on AL2023, set its `Runtime` property to `java8.al2023`, `java11.al2023`, or `java17.al2023`.
Resources:
<FunctionLogicalId>:
Type: AWS::Serverless::Function
Properties:
Runtime: java17.al2023WHY THIS HELPS
Configure a SAM application to use a Java 8, 11, or 17 AL2023 runtime.
REQUIREMENTS AND LIMITATIONS
- Version: v1.164.0
- Runtime (required): Function runtime identifier; required when `PackageType` is `Zip`. Accepted values for this task: `java8.al2023`, `java11.al2023`, or `java17.al2023`.
FIRST-PARTY EVIDENCE
- https://github.com/aws/aws-sam-cli/releases/tag/v1.164.0
- https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-function.html
Check the installed version and the source before using it. Entry JSON