GithubHelp home page GithubHelp logo

cloudformation-r-shiny's Introduction

#Setting up an R Shiny instance with CloudFormation

##Contents

  1. Set up AWS Account
  2. Create KeyPair
  3. Upload json to CloudFormation
  4. SSH to your instance
  5. Test!

###Set up AWS Account Go to http://aws.amazon.com and register for an account. If you already have an account move on to Step 2.

###Create KeyPair From your AWS console click the cube in the top left go to EC2 under the compute heading.

Then in the left navigation click Key Pairs.

Create a new Key Pair by clicking the Blue Create Key Pair button at the top.

Name your key pair and download it. Store it somewhere safe on your computer as it will be required to log into your computer in the future.

At this point follow these instructions to be able to log in to your instance in the future: Connecting to Your Linux Instance Using SSH

###Upload json to CloudFormation Click the cube in the top left again and this time click CloudFormation under Deployment and Management.

Click Create Stack.

On the next screen give your stack a name, this is arbitrary but should be descriptive. I name mine R-Shiny.

Under Source you should have downloaded or cloned the repo with the .json script to your computer. You can now just upload it to AWS. Or if you have an S3 bucket you can store it there and specify the URL to the template.

Click Next and in the dropdown choose the KeyPair that you created in the previous step.

Click Next for the next several screens.

###SSH to your instance Once the CloudFormation screen says Create_Complete, you can go back to your EC2 instance screen and click the Connect button at the top.

On your local computer navigate to the directory you downloaded your AWS Key Pair to and run the ssh command given in the Connect To Your Instance modal shown in the EC2 page.

###Test! Once you are in your instance make sure your programs have been installed.

  • To check R is installed at the command line type R.
  • To check git is installed type git.
  • To check shiny server is running type ps aux | grep shiny. You should see two entries returned for running processes. If you only see one, shiny is not running.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.