I have the following code for a Lambda function:
console.log(\'Loading function\'); var aws = require(\'aws-sdk\'); var ddb = new aws.DynamoDB(); function getUs
To avoid callback hell, use Promises. There are some pretty good tutorials on youtube by guy called funfunfunction.