aws-samples / serverless-coffee-workshop

This is the repo for Serverlesspresso workshop. Questions? Contact @jbesw or @benjamin_l_s on GitHub or Twitter.
https://workshop.serverlesscoffee.com/
MIT No Attribution
95 stars 63 forks source link

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

Closed marorvel31 closed 3 months ago

marorvel31 commented 7 months ago

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)

kimberlyamandalu commented 7 months ago

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...

bfreiberg commented 6 months ago

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 commented 6 months ago

Duplicate of #53

bfreiberg commented 5 months ago

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