Skip to content

Commit

Permalink
feat: Add support for java21 runtime (#12273) (#12274)
Browse files Browse the repository at this point in the history
* feat: Add support for java17 runtime (#12273)

* feat: Add support for java21 runtime (#12273)
  • Loading branch information
debae committed Nov 26, 2023
1 parent ee7fe48 commit e4dfebd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/providers/aws/guide/functions.md
Expand Up @@ -455,7 +455,7 @@ functions:
snapStart: true
```

**Note:** Lambda SnapStart only supports the Java 11 and Java 17 runtimes and does not support provisioned concurrency, the arm64 architecture, the Lambda Extensions API, Amazon Elastic File System (Amazon EFS), AWS X-Ray, or ephemeral storage greater than 512 MB.
**Note:** Lambda SnapStart only supports the Java 11, Java 17 and Java 21 runtimes and does not support provisioned concurrency, the arm64 architecture, the Lambda Extensions API, Amazon Elastic File System (Amazon EFS), AWS X-Ray, or ephemeral storage greater than 512 MB.

## VPC Configuration

Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/aws/invoke-local/index.js
Expand Up @@ -266,7 +266,7 @@ class AwsInvokeLocal {
);
}

if (['java8', 'java11', 'java17'].includes(runtime)) {
if (['java8', 'java11', 'java17', 'java21'].includes(runtime)) {
const className = handler.split('::')[0];
const handlerName = handler.split('::')[1] || 'handleRequest';
const artifact =
Expand Down
1 change: 1 addition & 0 deletions lib/plugins/aws/provider.js
Expand Up @@ -616,6 +616,7 @@ class AwsProvider {
enum: [
'dotnet6',
'go1.x',
'java21',
'java17',
'java11',
'java8',
Expand Down

0 comments on commit e4dfebd

Please sign in to comment.