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;