-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Java21 as runtime for AWS Lambda functions #12273
Comments
…2274) * feat: Add support for java17 runtime (serverless#12273) * feat: Add support for java21 runtime (serverless#12273)
What's the deal with this ticket. Is it merged or no? I am seeing this error running the latest version (framework 3.38.0)
So java21 is not supported?? When can we expect support for this?? |
Looks like it's merged but there hasn't been a release since.
…On Wed, 17 Jan 2024, 17:39 Andy Monigal, ***@***.***> wrote:
What's the deal with this ticket. Is it merged or no? I am seeing this
error running the latest version
<html>
<body>
<!--StartFragment-->
Error:
--
375 | Configuration error at 'provider.runtime': must be equal to one of the allowed values [dotnet6, go1.x, java17, java11, java8, java8.al2, nodejs14.x, nodejs16.x, nodejs18.x, nodejs20.x, provided, provided.al2, provided.al2023, python3.7, python3.8, python3.9, python3.10, python3.11, ruby2.7, ruby3.2]
376 |
377 | Learn more about configuration validation here: http://slss.io/configuration-validation
<!--EndFragment-->
</body>
</html>
So java21 is not supported??
—
Reply to this email directly, view it on GitHub
<#12273 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACVUUZBGDRL4I4U6VWE4JTDYPAEFRAVCNFSM6AAAAAA7YT6VSOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJWGI4DQMJWGY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Gotcha. Does anyone know when the next scheduled release will be? |
Hi @debae this will be supported in our framework v4 beta that will be released within the next week. |
Was the v4 beta released? Where can we try it out? |
Will this also go into v3? |
Where / when did this happen. |
@Mmarzex Any update on this? |
It does not look like we will ever see this in v3. You can still use 'java21' and ignore the warning. |
Per the post from Jan 17th above, its not a warning. It's throwing an exception and failing to deploy. I don't understand what you mean |
If you're waiting for V4 to drop just so you can upgrade to Java 21, keep in mind the licensing changes that are coming with V4.
|
I mean that with this setting in serverless.yml,
I'm getting this warning
and the Lambda will be deployed with Java 21 runtime. I use serverless 3.38.0, Node.js 20, MacOS and GitHub Actions ubuntu-latest runners. |
I am using AWS CodeCommit + AWS CodePipeline + AWS CodeBuild and it's not a warning/deploying. |
@amonigal you probably have
|
@zhemaituk Thank you. You were correct. Changing |
Is there an existing issue for this?
Use case description
Java 21 is now also supported by AWS as runtime : https://aws.amazon.com/about-aws/whats-new/2023/11/aws-lambda-support-java-21/
We should have this option as well in the supported runtimes of serverless framework
Proposed solution (optional)
Add java21 as option in the enum :
serverless/lib/plugins/aws/provider.js
Line 620 in bc99c2c
add the option in :
serverless/lib/plugins/aws/invoke-local/index.js
Line 269 in bc99c2c
Update documentation about snapstart since this also supports Java21 :
serverless/docs/providers/aws/guide/functions.md
Line 446 in 54e7af9
The text was updated successfully, but these errors were encountered: