FWIW folks in our group tend to use rstan on AWS with EC2 instances and Docker:
- start an EC2 instance, exposing any necessary ports in the security group settings (e.g., 8787 for RStudio server, or 8888 for Jupyter notebook)
- ssh into it
- (if necessary) install docker
- then run your Docker container that has an RStudio server instance or Jupyter notebook/lab
- connect via web browser and do your thing
Here’s an example Dockerfile: https://github.com/mbjoseph/wildfire-extremes/blob/master/Dockerfile
Another good option that would be more straightforward: Louis Aslett’s RStudio AMIs - http://www.louisaslett.com/RStudio_AMI/