Skip to content

Instantly share code, notes, and snippets.

@Jerga99
Created July 15, 2018 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jerga99/20770c2e5418b0addb54ae3762ca5378 to your computer and use it in GitHub Desktop.
Save Jerga99/20770c2e5418b0addb54ae3762ca5378 to your computer and use it in GitHub Desktop.
const multer = require('multer');
const multerS3 = require('multer-s3');
const aws = require('aws-sdk');
aws.config.update({
secretAccessKey: "ab7786ad6", // Not working key, Your SECRET ACCESS KEY from AWS should go here, never share it!!!
accessKeyId: "ab7786ad6", // Not working key, Your ACCESS KEY ID from AWS should go here, never share it!!!
region: 'us-east-1' // region of your bucket
});
const s3 = new aws.S3();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment