Can we use ~/.aws/credentials file?

75 views
Skip to first unread message

Aaron Baker

unread,
Nov 19, 2015, 1:51:31 PM11/19/15
to DynamoDb driver for Node.js
If you use the plain aws-sdk you can init the DynamoDB object like:

var db = new AWS.DynamoDB();

This pulls the access key and secret from a file in ~/.aws/credentials.  Can this plugin be initialized the same way? i.e.

var dynamodb = require('dynamodb').ddb()

refers to the credentials file if no arguements are passed?  Currently I get an error when I try to do this.
Reply all
Reply to author
Forward
0 new messages