awssum-amazon-dynamodb

AwsSum plugin for Amazon DynamoDB.

npm install awssum-amazon-dynamodb
3 downloads in the last day
3 downloads in the last week
143 downloads in the last month

awssum-amazon-SERVICE

This is an AwsSum plugin!

You'll need to add awssum-amazon-dynamodb to your package.json dependencies. Both awssum and awssum-amazon are pulled in as peer dependencies.

dependencies : {
    "awssum-amazon-dynamodb" : "1.x",
},

Example

List all your tables

var fmt = require('fmt');
var amazonDynamoDB = require('awssum-amazon-dynamodb');

var dynamodb = new amazonDynamoDB.DynamoDB({
    'accessKeyId'     : process.env.ACCESS_KEY_ID,
    'secretAccessKey' : process.env.SECRET_ACCESS_KEY,
    'region'          : amazonDynamoDB.US_EAST_1
});

dynamodb.ListTables(function(err, data) {
    fmt.dump(err, 'err');
    fmt.dump(data, 'data');
});

Operations

  • BatchGetItem
  • BatchWriteItem
  • CreateTable
  • DeleteItem
  • DeleteTable
  • DescribeTable
  • GetItem
  • ListTables
  • PutItem
  • Query
  • Scan
  • UpdateItem
  • UpdateTable

Author

Written by Andrew Chilton - Blog - Twitter.

License

(Ends)

npm loves you