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

gefragt vor 2 Jahren322 Aufrufe
1 Antwort
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
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen