"errorType": "Runtime.HandlerNotFound", "errorMessage": "index.handler is undefined or not exported", "trace": [ "Runtime.HandlerNotFound: index.handler is undefined or not exported"...
My aws lambda function is showing this error. The index.js file is in the root folder, handler is the name of the function as well. I tried with the smallest piece of code I could find:
exports.handler = function index(event, context, callback) {
//some code
}
I have tried all the recommendations I have seen so far for this issue. Still nothing seems to work.
The Runtime settings handler has the below value only:
index.handler





