I get access denied when I run a node.js function on AWS Lamda. I am uploading a zip file which contains the index.js and the node module packets.
Have run through this twice now and still get same error as below so any help is appreciated.
{
"errorMessage": "EACCES: permission denied, open '/var/task/read.js'",
"errorType": "Error",
"stackTrace": [
"Object.fs.openSync (fs.js:549:18)",
"Object.fs.readFileSync (fs.js:393:15)"