Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let AWS = require('aws-sdk');
- let DB = require('./db');
- class Configuration {
- constructor() {
- this.bucket = process.env.S3_BUCKET;
- }
- get dynamoDBclient() {
- return new AWS.DynamoDB({
- endpoint: process.env.DYNAMODB_URL,
- region: process.env.AWS_REGION
- })
- }
- db() {
- return new DB(this.dynamoDBclient, {
- users: process.env.DB_USERS_TABLE,
- information_requests: process.env.DB_INFORMATION_REQUESTS_TABLE
- });
- }
- }
- module.exports = new Configuration();
Add Comment
Please, Sign In to add comment