Skip to content
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

NODEJS_14_X is deprecated and causes an error on cdk deploy #1387

Open
GryphonInfoSec opened this issue Apr 10, 2024 · 1 comment
Open

NODEJS_14_X is deprecated and causes an error on cdk deploy #1387

GryphonInfoSec opened this issue Apr 10, 2024 · 1 comment
Labels
bug This issue is a bug. p2 pr/work-in-progress This PR is a draft and needs further work.

Comments

@GryphonInfoSec
Copy link

Describe the bug

NODEJS_14_X is deprecated and causes an error on cdk deploy. This version is no longer supported by AWS, therefore the version should be upgraded to at least NODEJS_16.

Expected Behavior

Successful cdk deploy

Current Behavior

"The runtime parameter of nodejs14.x is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs20.x) while creating or updating functions.

Reproduction Steps

line 24 of hitcounter.ts runtime: lambda.Runtime.NODEJS_14_X,
When running cdk deploy the error for unsupported runtime in AWS Lambda functions is received.

Possible Solution

Replace:
runtime: lambda.Runtime.NODEJS_14_X,
with:
runtime: lambda.Runtime.NODEJS_16_X,

Additional Information/Context

No response

CDK CLI Version

No response

Section

No response

Browser

No response

Language

No response

@GryphonInfoSec GryphonInfoSec added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Apr 10, 2024
@ashishdhingra
Copy link
Contributor

@GryphonInfoSec Thanks for reporting the issue. I do recognize that Node 14.x is deprecated and we should fix the code example to change it to Node 16.x (at least). Thanks for the PR. Could you update your you PR to make similar change for Japanese version here.

Thanks,
Ashish

@ashishdhingra ashishdhingra added p2 pr/work-in-progress This PR is a draft and needs further work. and removed needs-triage This issue or PR still needs to be triaged. labels Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. p2 pr/work-in-progress This PR is a draft and needs further work.
Projects
None yet
Development

No branches or pull requests

2 participants