/ec2_shiny_server

Instructions to configure an EC2 instance running amazon linux to host shiny apps

Primary LanguageShell

ec2_shiny_server

Instructions to configure an EC2 instance running amazon linux to host shiny apps

Configuring your EC2 instance

Login to AWS and navigate to the Management Console. Under services, select EC2.

Within the instances tab of the EC2 page, select Launch Instances.

Shinyserver requires linux to run so you need to select a linux AMI. Select the Amazon Linux 2 AMI.

Select the T2 micro instance type as it is eligible for the Free Tier and proceed to configure instance details.

Accept the defaults for the instance details and proceed to adding storage.

You can have up to 30GB in the free tier so increase the storage size to 30GB.

You do not need to add any tags, you can proceed to the security settings.

Configure your security group like this screenshot. This will open up ports to allow your shiny apps to be visible on the internet and also allow you to access the browser based rstudio server. It will limit who can directly SSH onto the machine to your current IP address.

#Create an EC2 instance with Amazon Linux 2 with internet access #Connect to your instance using putty

#Perform a quick update on your instance:

sudo yum update -y

#Install git in your EC2 instance

sudo yum install git -y

#Check git version

git version

Download the repo

git clone https://github.com/lina2497/ec2_shiny_server