From 622e2a1ccddf6f09e93fb4656c1d609ae34bdd58 Mon Sep 17 00:00:00 2001 From: Tony Liu Date: Wed, 3 Dec 2025 21:51:32 +1300 Subject: [PATCH] Update the list of AWS Lambda runtimes. --- lib/plugins/aws/invoke-local/index.js | 2 +- lib/plugins/aws/provider.js | 1 + types/index.d.ts | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/plugins/aws/invoke-local/index.js b/lib/plugins/aws/invoke-local/index.js index c7e925119..407070912 100644 --- a/lib/plugins/aws/invoke-local/index.js +++ b/lib/plugins/aws/invoke-local/index.js @@ -277,7 +277,7 @@ class AwsInvokeLocal { ); } - if (['java8', 'java11', 'java17', 'java21'].includes(runtime)) { + if (['java8', 'java8.al2', 'java11', 'java17', 'java21', 'java25'].includes(runtime)) { const className = handler.split('::')[0]; const handlerName = handler.split('::')[1] || 'handleRequest'; const artifact = diff --git a/lib/plugins/aws/provider.js b/lib/plugins/aws/provider.js index d1bcb89b3..29a9f9ccb 100644 --- a/lib/plugins/aws/provider.js +++ b/lib/plugins/aws/provider.js @@ -627,6 +627,7 @@ class AwsProvider { enum: [ 'dotnet6', 'dotnet8', + 'dotnet9', 'go1.x', 'java21', 'java17', diff --git a/types/index.d.ts b/types/index.d.ts index 29d5ecbf1..f94e3930d 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -53,7 +53,9 @@ export type AwsLambdaRole = string | AwsCfSub | AwsCfImport | AwsCfGetAtt; export type AwsLambdaRuntime = | "dotnet6" | "dotnet8" + | "dotnet9" | "go1.x" + | "java25" | "java21" | "java17" | "java11"