Querying DynamoDB with Lambda does nothing

前端 未结 6 838
北恋
北恋 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条回答
  •  旧时难觅i
    2021-02-07 09:45

    My problem is that my lambda was running in a VPC in order to connect to ElastiCache. This causes any queries to public Internet resources such as DynamoDB and API Gateway to hang indefinitely. I had to set up a NAT Gateway within my VPC in order to access DynamoDB.

提交回复
热议问题