aws.js 270 B

12345678910
  1. const AWS = require('aws-sdk');
  2. const AWS_ACCESS_KEY = process.env.AWS_ACCESS_KEY;
  3. const AWS_SECRET_ACCESS_KEY = process.env.AWS_SECRET_ACCESS_KEY;
  4. const s3 = new AWS.S3({
  5. accessKeyId: AWS_ACCESS_KEY,
  6. secretAccessKey: AWS_SECRET_ACCESS_KEY,
  7. });
  8. module.exports = s3;