Coder Social home page Coder Social logo

Comments (16)

noelmccrory avatar noelmccrory commented on June 19, 2024 2

from serverless.

mgerlach avatar mgerlach commented on June 19, 2024 2

Will this also go into v3?

from serverless.

zhemaituk avatar zhemaituk commented on June 19, 2024 2

@amonigal you probably have configValidationMode: error in serverless.yml. Remove or comment it out:

# TODO: Uncomment once https://github.com/serverless/serverless/issues/12273 is addressed (java21 support).
# configValidationMode: error

from serverless.

monigala avatar monigala commented on June 19, 2024 1

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 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 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?

from serverless.

debae avatar debae commented on June 19, 2024 1

It was merged to the main branch, however the code is not in the v3 branch which is used to create the latest versions of the serverless framework. @medikoo or @Mmarzex what is the plan here ?

from serverless.

amonigal avatar amonigal commented on June 19, 2024 1

@Mmarzex Any update on this?

from serverless.

amonigal avatar amonigal commented on June 19, 2024 1

@amonigal you probably have configValidationMode: error in serverless.yml. Remove or comment it out:

# TODO: Uncomment once https://github.com/serverless/serverless/issues/12273 is addressed (java21 support).
# configValidationMode: error

@zhemaituk Thank you. You were correct. Changing configValidationMode: error to configValidationMode: warn worked.

from serverless.

monigala avatar monigala commented on June 19, 2024

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)

<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?? When can we expect support for this??

from serverless.

Mmarzex avatar Mmarzex commented on June 19, 2024

Hi @debae this will be supported in our framework v4 beta that will be released within the next week.

from serverless.

TedGrahamEmporia avatar TedGrahamEmporia commented on June 19, 2024

Was the v4 beta released? Where can we try it out?

from serverless.

dfelsman-ta avatar dfelsman-ta commented on June 19, 2024

Where / when did this happen.

from serverless.

mgerlach avatar mgerlach commented on June 19, 2024

It does not look like we will ever see this in v3. You can still use 'java21' and ignore the warning.

from serverless.

amonigal avatar amonigal commented on June 19, 2024

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 You can still use 'java21'.... The whole point of this issue is you can't use java 21 (in v3).

from serverless.

noelmccrory avatar noelmccrory commented on June 19, 2024

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.

Starting in 2024, the Serverless Framework CLI remains free for most users. However, all organizations that earned over $2M in their last fiscal year must purchase a Serverless Subscription which includes a license to use Serverless Framework V.4 and beyond.

You do not have to buy a License for Serverless Framework V.3 and less. V.3 will continue to receive essential security and bug fixes throughout 2024.

from serverless.

mgerlach avatar mgerlach commented on June 19, 2024

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 You can still use 'java21'.... The whole point of this issue is you can't use java 21 (in v3).

I mean that with this setting in serverless.yml,

provider:
  name: aws
  runtime: java21

I'm getting this warning

> node_modules/.bin/serverless deploy --verbose --stage prod 

Warning: Invalid configuration encountered 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] 

Learn more about configuration validation here: http://slss.io/configuration-validation 

Deploying ... to stage prod (eu-central-1) 
...

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.

from serverless.

amonigal avatar amonigal commented on June 19, 2024

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 You can still use 'java21'.... The whole point of this issue is you can't use java 21 (in v3).

I mean that with this setting in serverless.yml,

provider:
  name: aws
  runtime: java21

I'm getting this warning

> node_modules/.bin/serverless deploy --verbose --stage prod 

Warning: Invalid configuration encountered 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] 

Learn more about configuration validation here: http://slss.io/configuration-validation 

Deploying ... to stage prod (eu-central-1) 
...

and the Lambda will be configured to run on Java 21

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.

image
image

image
image
image

from serverless.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.