Comments (16)
from serverless.
Will this also go into v3?
from serverless.
@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.
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.
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.
@Mmarzex Any update on this?
from serverless.
@amonigal you probably have
configValidationMode: error
inserverless.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.
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.
Hi @debae this will be supported in our framework v4 beta that will be released within the next week.
from serverless.
Was the v4 beta released? Where can we try it out?
from serverless.
Where / when did this happen.
from serverless.
It does not look like we will ever see this in v3. You can still use 'java21' and ignore the warning.
from serverless.
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.
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.
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.
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.
from serverless.
Related Issues (20)
- [Kafka Trigger] Ease multiple topics consumption
- Unable to Disable esbuild Bundling in Serverless4: 'Cannot use "external" without "bundle"' HOT 4
- V4 how to login in a non-interactive way? HOT 7
- V4: dev mode throws error when function invoked HOT 4
- run serverless info when running serverless dev HOT 7
- V4 Broken error reporting: functionHandler is not defined HOT 9
- V4: ${opt:stage} does not resolve when using "-s" but does when using "--stage" HOT 6
- serverless config credentials HOT 4
- V4 - Include original error message after our custom error messages when resolving AWS Credentials HOT 1
- V4: Unrecognized command “plugin install” v4.0.26 HOT 6
- Serverless4: Using esbuild's "packages: external" flag doesn't seem to work HOT 3
- Serverless4: Unable to Ensure that the Prisma libquery Engine and schema.prisma are Included in my Bundle HOT 7
- Support MFA Prompt when using an AWS Profile
- V4 progress spinner conflicts with plugins HOT 1
- Error: Cannot find module 'serverless/lib/serverless-error' While installing the appsync plugin HOT 2
- Dev Mode instruments all functions across multiple services if run in parent folder
- Ensure Bref works with Serverless Framework V.4 HOT 1
- Ensure Lift works with Serverless Framework V.4 HOT 7
- v3: Error: Cannot use 'publicReadAccess' property on a bucket without allowing bucket-level public access through 'blockPublicAceess' property. HOT 2
- Resolvers error regarding `replace`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless.