AMT Blog

Dynode – A node.js client for Amazon's DynamoDB

Image representing Amazon Web Services as depi...

Dynode is a node.js client, which enables you to work with Amazon's DynamoDB service with ease. Amazon's http api is complex and interacting with it is not so easy. This client does offer a simpler and more obvious way of working with DynamoDB, notably, without putting any restrictions on what you can accomplish with DynamoDB.

There are two different ways to use dynode: directly via the default dynamoDB client, or by instantiating your own client. The former is merely intended to be a convenient shared client to use throughout your application if you so choose.

Using the Default DynamoDB Client

The default client is accessible through the dynode module directly. Any method that you could call on an instance of a client is available on the default client:

var dynode = require('dynode');

  // When using the default client you must first give it auth credentials
  dynode.auth({accessKeyId: "AWSAccessKey", secretAccessKey: "SecretAccessKey"});

  dynode.createTable("NewTable", console.log);
  dynode.listTables(console.log);

Instantiating your own DynamoDB Client

If you would prefer to manage your own client, potentially with different auth params:

Read more…

Don't like to miss out any of our posts? Do

To Posterous, Love Metalab