As my title explains I am getting the following error:
{
\"errorMessage\": \"Cannot find module \'index\'\",
\"errorType\": \"Error\",
\"stackTrace\": [
Correct Lambda
function declaration can look like this:
var func = function(event, context) {
...
};
exports.handler = func;
You may have other syntax errors that prevent the index.js
file from being properly ran. Try running your code locally using another file and using the index.js
as your own module.