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

Use config package to store credentials #32

Open
2 of 3 tasks
leeper opened this issue Jul 28, 2018 · 1 comment
Open
2 of 3 tasks

Use config package to store credentials #32

leeper opened this issue Jul 28, 2018 · 1 comment

Comments

@leeper
Copy link
Member

leeper commented Jul 28, 2018

From @chrowe via cloudyr/aws.s3#240

Please specify whether your issue is about:

  • a possible bug
  • a question about package functionality
  • a suggested code or documentation change, improvement to the code, or feature request

Is it possible to retrieve S3 credentials using the config package instead of environment variables without have to specify them every time?

Put your code here:
I know that I can set them inline like this...
config.yml

default:
  s3:
    bucket: 'my_bucket'
    key: YOUR_AWS_ACCESS_KEY
    secret: YOUR_AWS_SECRET_ACCESS_KEY

R code

s3conf <- config::get("s3")
get_bucket(
  bucket = s3conf$bucket,
  key =  s3conf$key,
  secret =  s3conf$secret
) 

But it would be nice to be able to just set that once like you can with Sys.setenv

@vspinu
Copy link

vspinu commented Apr 11, 2020

I think the default .aws/config should be used instead of inventing custom configurations options. #53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants