gl-store-s3.js/lib/aws.js

12 lines
334 B
JavaScript

const AWS = require("aws-sdk");
AWS.config.setPromisesDependency(Promise);
module.exports = (options) => {
AWS.config.update({
region: options.bucketRegion
, credentials: new AWS.Credentials({
accessKeyId: options.accessKeyId
, secretAccessKey: options.secretAccessKey
})
});
}