Configuring region in Node.js AWS SDK

前端 未结 14 1554
失恋的感觉
失恋的感觉 2020-12-05 03:30

Can someone explain how to fix a missing config error with Node.js? I\'ve followed all the examples from the aws doc page but I still get this error no matter what.

14条回答
  •  情书的邮戳
    2020-12-05 04:17

    You can specify the region when creating the dynamodb connection (haven't tried s3 but that should work too).

    var AWS = require('aws-sdk');
    var dd = new AWS.DynamoDB({'region': 'us-east-1'});
    

提交回复
热议问题