In my local mocha tests the following handler function works just fine. However, when I upload to AWS (using Serverless framework) it times out (unless you don\'t provide a
Add the following as the first line of your handler function:
context.callbackWaitsForEmptyEventLoop = false