I've built a shiny app that saves and reads data from S3, using the aws.s3 package.
Along the lines of this answer I have saved my AWS credentials in a .Renviron file and successfully deployed the app to shinyapps.io
Now comes the problem. I want to host the app on an EC2 instance (I'm following this excellent tutorial). To do that, I need to clone the app from github. But I've added .Renviron to .gitignore.
The question is: can I make a .Renviron file within the EC2 instance? Is there some other way I should be approaching this?
PS I've tried creating it with touch .Renviron
but shiny-server doesn't seem to have permission to access that file.