Consider following code -
function index(event, context, callback) {
//some code
}
exports.handler = index();
{
"errorMessage": "Handler 'handler' missing on module 'index'"
}
This is my function which is having business logic. My javascript file name is index.js.
Whenever I test this code on aws lambda, It gives the following log(failed).
This is a screenshot of the Amazon Lambda Upload Site: