US East 2 (Ohio) Region

43 views
Skip to first unread message

Matt

unread,
Oct 21, 2016, 12:05:31 PM10/21/16
to DynamoDb driver for Node.js
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',
                                    endpoint: 'dynamodb.us-east-2.amazonaws.com' });

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',
                                    endpoint: 'dynamodb.us-east-1.amazonaws.com' });


List Tables
ddb.listTables({}, function(err, res) {console.log(res);});

Console Output
{ TableNames: [ 'Forum', 'ProductCatalog', 'Reply', 'Thread' ] }

THIS Also Works:

Constructor
var ddb = require('dynamodb').ddb({ accessKeyId: 'XXXXXXXX',
                                    secretAccessKey: 'XXXXXXXXXXXXXXXX',
                                    endpoint: 'dynamodb.us-west-2.amazonaws.com' });

List Tables
ddb.listTables({}, function(err, res) {console.log(res);});

Console Output
{ TableNames: [] }

גלעד קמרי

unread,
Apr 6, 2017, 3:13:46 AM4/6/17
to DynamoDb driver for Node.js
Hi,
i have the same problem, did u fixed it?
בתאריך יום שישי, 21 באוקטובר 2016 בשעה 18:05:31 UTC+2, מאת Matt:
Reply all
Reply to author
Forward
0 new messages