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

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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ