DanielHindi / aws-s3-zipper

takes an amazon s3 bucket folder and zips it for streaming or serializes to a file
119 stars 74 forks source link

should it get credentials from AWS.config? #41

Open arturojain opened 4 years ago

arturojain commented 4 years ago

if AWS.config credentials are set it should use them instead of asking for them again.

I'm doing this as a fix:

AWS.config.getCredentials(function (err) {
  if (!err) {
    new S3zip({
      accessKeyId: AWS.config.credentials.accessKeyId,
      secretAccessKey: AWS.config.credentials.secretAccessKey,
      region: AWS.config.region,
      bucket: < bucket >
    })
  }
})