move files around

This commit is contained in:
Ben Ramey
2018-09-20 06:46:02 -05:00
parent 8eba063aef
commit 4e114f8de4
5 changed files with 8 additions and 10 deletions

View File

@@ -0,0 +1,13 @@
const AWS = require('aws-sdk');
// Set the region
AWS.config.update({region: 'us-east-2'});
// also set local endpoint while in development
if (process.env.NODE_ENV === 'development') {
AWS.config.update({endpoint: "http://localhost:8000"});
}
const client = new AWS.DynamoDB.DocumentClient({});
module.exports = client;