AWS Lambda Async Handler
For when you are deploying a Lambda (Node 6.10) which you're compiling using TypeScript or Babel, and you just want to use async/await for your handler.
You're asked to provide...
exports { ... // Use callback() and return information to the caller. }
(Source: https://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-handler.html)
But you want your TypeScript to be...
;
So you just...
;
Or in async compiled JavaScript...
const wrapHandler = default exportsmyHandler =