NOTE: AwsSum is now deprecated. Please use aws-sdk instead.
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",
},
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');
});
- BatchGetItem
- BatchWriteItem
- CreateTable
- DeleteItem
- DeleteTable
- DescribeTable
- GetItem
- ListTables
- PutItem
- Query
- Scan
- UpdateItem
- UpdateTable
Written by Andrew Chilton - Blog - Twitter.
- Copyright 2011-2013 Apps Attic Ltd. All rights reserved.
- Copyright 2013 Andrew Chilton. All rights reserved.
(Ends)