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 #240

Closed
2 of 3 tasks
chrowe opened this issue Jul 14, 2018 · 1 comment
Closed
2 of 3 tasks

Use config package to store credentials #240

chrowe opened this issue Jul 14, 2018 · 1 comment

Comments

@chrowe
Copy link

chrowe commented Jul 14, 2018

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

@leeper
Copy link
Member

leeper commented Jul 28, 2018

Migrated to: cloudyr/aws.signature#32

@leeper leeper closed this as completed Jul 28, 2018
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