I have a simple exports.js file and I have zipped the folder and upload it to Lambda but on run time it gives an error:
"errorMessage": "Cannot find module 'exports'",
"errorType": "Error",
"stackTrace":
[
"Function.Module._resolveFilename (module.js:338:15)",
"Function.Module._load (module.js:280:25)",
"Module.require (module.js:364:17)",
"require (module.js:380:17)"
]
Any help would be appreciated. Thanks