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

asked 2 years ago312 views
1 Answer
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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions