"errorMessage": "Cannot find module '/var/task/index'"
pvamsik opened this issue · 3 comments
pvamsik commented
I have followed the instructions mentions in many of the threads and uploaded the zip file for the lambda function.
- Opened js folder in command prompt
- Ran npm install
- zipped the folder using 7zip
- Uploaded zipped folder
When I test the function with input, I am getting the following error attached. Can someone help please.
Thanks
Vamsi
adi701 commented
This is because you have zipped the folder rather than the files .
Soln: select all the files and press add to archive
Hope it helps
alpeshinfogain commented
@pvamsik .. How did you troubleshoot this?