-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(lambda-nodejs): non-deterministic runtime version #13893
Comments
I totally agree. Defaults should be completely deterministic. I think we should use nodejs 12.x as the default. @jogold can you please pick this up? |
Why not nodejs 14.x which is the current LTS? |
I am okay with node 12 as well. |
Use `NODEJS_14_X` as default runtime. Closes aws#13893
Use `NODEJS_14_X` as default runtime for `NodejsFunction`. Closes #13893 BREAKING CHANGE: the default runtime version for `NodejsFunction` is now always `NODEJS_14_X` (previously the version was derived from the local NodeJS runtime and could be either 12.x or 14.x). ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Use `NODEJS_14_X` as default runtime for `NodejsFunction`. Closes aws#13893 BREAKING CHANGE: the default runtime version for `NodejsFunction` is now always `NODEJS_14_X` (previously the version was derived from the local NodeJS runtime and could be either 12.x or 14.x). ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Use `NODEJS_14_X` as default runtime for `NodejsFunction`. Closes aws#13893 BREAKING CHANGE: the default runtime version for `NodejsFunction` is now always `NODEJS_14_X` (previously the version was derived from the local NodeJS runtime and could be either 12.x or 14.x). ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
❓ General Issue
The mutation default runtime of nodejs lambda looks like not a good practice.
aws-cdk/packages/@aws-cdk/aws-lambda-nodejs/lib/function.ts
Lines 33 to 40 in df5c133
Assuming a
NodejsFunction
lambda with default runtime, the unit test will fail if the CI uses matrix nodejs versions, such as12.x
,14.x
.The Question
Environment
Other information
The text was updated successfully, but these errors were encountered: