cloudcomponents / cdk-constructs

A collection of higher-level reusable cdk constructs
MIT License
625 stars 104 forks source link

Upgrade nodejs runtime for cdk-codepipeline-slack lambdas #144

Closed calvinwyoung closed 2 years ago

calvinwyoung commented 2 years ago

Using the SlackApprovalAction construct from @cloudcomponents/cdk-codepipeline-slack, currently results in the following error:

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

This was reported in #143.

This PR bumps the nodejs runtime for the Slack notifier lambda from 10.x to 14.x.

zvictor commented 7 months ago

The problem is back:

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. (Service: Lambda, Status Code: 400, Request ID: d24e03df-b5d1-4af2-8468-27027cc04f27)

Prasad-Telasula commented 5 months ago

Yes !!! I concur with @zvictor regarding the obsolescence of nodejs14.x support within AWS. It's imperative that we facilitate an upgrade to a supported version of Node.js. Could anyone provide an update on whether there is active development underway to address this issue?

Resource handler returned message: "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. (Service: Lambda, Status Code: 400, Request ID: d898554a-db42-44e0-8580-a68591c283e0)" (RequestToken: abe27e74-99a4-2c4d-ee02-4b514bae0f74, HandlerErrorCode: InvalidRequest)

kadishmal commented 4 months ago

Replied in https://github.com/cloudcomponents/cdk-constructs/issues/208#issuecomment-2111766163 that Node v18 and v20 are supported on the latest CDK v2 releases. CDK v1 based releases are no longer maintained.