I am trying to use the DynamoDB library in NodeJS and I'm running into an issue whenever I set the "endpoint" to
dynamodb.us-east-2.amazonaws.com in the constructor.
I have looked through the code, but I am not seeing anywhere that specifically wouldn't allow this to work. It works for other regions I'm trying.
Any ideas? Examples below.
THIS DOESN'T WORK:
Constructor
var ddb = require('dynamodb').ddb({ accessKeyId: 'XXXXXXXX',
secretAccessKey: 'XXXXXXXXXXXXXXXX',
List Tables
ddb.listTables({}, function(err, res) {console.log(res);});
Console Output
undefined
THIS DOES WORK:
Constructor
var ddb = require('dynamodb').ddb({ accessKeyId: 'XXXXXXXX',
secretAccessKey: 'XXXXXXXXXXXXXXXX',
List Tables
ddb.listTables({}, function(err, res) {console.log(res);});
Console Output
{ TableNames: [ 'Forum', 'ProductCatalog', 'Reply', 'Thread' ] }
Constructor
var ddb = require('dynamodb').ddb({ accessKeyId: 'XXXXXXXX',
secretAccessKey: 'XXXXXXXXXXXXXXXX',
List Tables
ddb.listTables({}, function(err, res) {console.log(res);});
Console Output