DynamoDB-Local

413 views
Skip to first unread message

Joe Buszkiewic

unread,
Nov 26, 2014, 10:33:56 AM11/26/14
to node-d...@googlegroups.com
When trying to connect to an instance of DynamoDB-Local I keep getting the following error.

{ [Error: getaddrinfo ENOTFOUND] code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall: 'getaddrinfo' }

I have specified my configuration options to look like this.

{ "accessKeyId": "Some Valid Key", "secretAccessKey": "Some Valid Secret", "endpoint": "localhost:8000" }

It seems like DynamoDB-Local is in fact running. And it seems to have created the io buffer. It isn't until I try to call a method, IE `createTable`, that I see this error.

Does anyone have any guidance on how to resolve this issue?

Joe Buszkiewic

unread,
Nov 26, 2014, 12:48:43 PM11/26/14
to node-d...@googlegroups.com
Ok I got past the initial error. The client is expecting endpoint to just be a fully qualified domain, and specify the port as another config option.

However, when I do that I get. I tried this request against my instance of DynamoDB on amazon and it worked without errors.

Error: Scan [400]: com.amazonaws.dynamodb.v20120810#MissingAuthenticationToken

Still, if anyone has any further insights I would appreciate it. Thanks!

Michael Dise

unread,
Dec 9, 2014, 9:10:32 AM12/9/14
to node-d...@googlegroups.com
I seem unable to connect to a local DynamoDB instance as well.

Is there some work around / parameters that allow local instances to work?

Mike

vin...@appliedcloudcomputing.com

unread,
Aug 5, 2015, 9:11:08 AM8/5/15
to DynamoDb driver for Node.js
add this code to the top of your .js  file ,and the connection should be done,
var express = require('express');
var router = express.Router();
var AWS = require('aws-sdk');
var databaseConfig = {"endpoint": new AWS.Endpoint("http://localhost:8000")};
 
var dynamoDB = new AWS.DynamoDB(databaseConfig);
   
var dynamoDBConfiguration = {
   
"accessKeyId": "DummyKeyForLocalDynamoDB",
   
"secretAccessKey": "DummySecretAccessKeyForLocalDynamoDB",
   
"region": "eu-west-1"
 
};

Andrew Peebles

unread,
Aug 24, 2015, 3:01:23 PM8/24/15
to DynamoDb driver for Node.js
This does not work.  The auth() routine is hardcoded to hit 'sts.amazonaws.com'.  I do not see how the code below would do any good.  The node-dynamodb lib uses http calls directly to access aws.

I need local access.  Looks like if we need local access, this library (node-dynamodb) will not work.  Is too bad, because I like its auth and retry support.

john joseph

unread,
Oct 9, 2015, 1:24:27 AM10/9/15
to DynamoDb driver for Node.js
Hi Andrew,

Which module did you end up using for local access ? The aws-sdk for JS seems to have this did you try that? Which module did you end-up using for production?

Andrew Peebles

unread,
Oct 9, 2015, 2:12:52 AM10/9/15
to node-d...@googlegroups.com
I ended up just not using local access.  So I still use node-dynamodb, and I go to Amazon, even when testing and developing on my laptop.  I may need to re address this in the future but for now I am ok.

A
--
You received this message because you are subscribed to a topic in the Google Groups "DynamoDb driver for Node.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-dynamodb/nowB7TMrcBk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-dynamod...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages