Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

should it get credentials from AWS.config? #41

Open
arturojain opened this issue Jan 6, 2020 · 0 comments
Open

should it get credentials from AWS.config? #41

arturojain opened this issue Jan 6, 2020 · 0 comments

Comments

@arturojain
Copy link
Contributor

arturojain commented Jan 6, 2020

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 >
    })
  }
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant