serverless-coffee-workshop icon indicating copy to clipboard operation
serverless-coffee-workshop copied to clipboard

I am running the workshop of serverlesspresso and I am getting this error

Open marorvel31 opened this issue 1 year ago • 4 comments

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: 10b9bca8-1a3b-4782-bbdf-0be6def68c44)" (RequestToken: 428f38f8-1971-aec1-d05e-81d773623783, HandlerErrorCode: InvalidRequest)

marorvel31 avatar Feb 14 '24 00:02 marorvel31

I am also getting this error today. I updated the runtime in the cfn templates to nodejs20.x but sam will not pick up the new version and keeps using 14 for some reason...

kimberlyamandalu avatar Feb 14 '24 21:02 kimberlyamandalu

Hi @kimberlyamandalu, thanks for your bug report. The issue can be resolved for now by updating the runtime version of the Lambda functions to Node v16. An upgrade to Node v20 isn't as easy, as that version uses the AWS SDK v3 instead of v2.

We are currently working on updating the functions to resolve this.

bfreiberg avatar Feb 27 '24 09:02 bfreiberg

Duplicate of #53

bfreiberg avatar Feb 27 '24 09:02 bfreiberg

Hi, the template has been updated and it should work again. Could you please test it again

bfreiberg avatar Apr 21 '24 15:04 bfreiberg