AWS Lambda NodeJS compatibility issues.

0

I am working on AWS project by freecodecamp (link: https://www.youtube.com/watch?v=JgwI22y_eFA). This project is an online book store website which focuses on Amplify, AppSync, DynamoDB, S3 and Lambda.

At about 28:00, the mentor uses amplify push to push resources to cloud, but I'm getting incompatibility errors regarding Node JS. Screenshot URL: https://drive.google.com/file/d/18gdCOudpop9SUTtbYj7VcEfkQctIm8Qw/view?usp=sharing

Github link for code: https://github.com/FossWithKc/BookStore-AWS

Please Help me.

  • Hello ))) yes the 10.X runtime is not supported anymore. Update the runtime version to the last one and all would work )))

已提问 2 年前322 查看次数
1 回答
0

Hi, NodeJS 10 is not supported anymore by AWS Lambda. Versions 12 and 14 are supported (doc). The version of amplify cli you use (4.24 according to the video), is a bit old (~2 years) and was using NodeJS 10. You should update to a more recent version of amplify cli: npm install -g @aws-amplify/cli. Note that the content in the GitHub repo may not be compatible with a more recent version of the cli...

profile pictureAWS
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则