Querying DynamoDB with Lambda does nothing

前端 未结 6 843
北恋
北恋 2021-02-07 09:01

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         


        
6条回答
  •  不知归路
    2021-02-07 09:38

    To avoid callback hell, use Promises. There are some pretty good tutorials on youtube by guy called funfunfunction.

提交回复
热议问题