I keep getting this error in the aws-lambda console when uploading code from a zip file. I have tried uploading other zip files and they work correctly. The .js file is name
This exact error can show up if your zipped file(s) do not have world-wide read permission. (chmod -R ugo+r).
chmod -R ugo+r
Check the file permissions before they are zipped. This is not emphasized enaugh unfortunately by AWS and it caused a lot of headaches for many.