1
votes

I'm trying to deploy a shiny app using shiny-server. That app uses the aws.s3 package to read some files from an S3 bucket, which requires the AWS credentials either be stored in environment variables or in an .Renviron file.

Understandably, shiny-server scrubs most environment variables before launching R. Is there any way to square this circle? Any other mechanism I could use to pass credentials to aws.s3?

1
Is the shiny-server running in AWS?helloV
@helloV Yes, it is. Inside a docker container.RoyalTS

1 Answers

0
votes

when running your docker container, you can in the same command provide your .Renviron and / or aws-credentials file to the correct place with -v flag:

docker run -v /location_file_local/.Renviron:/location_file_docker/.Renviron Name_of_docker_image