SlideShare a Scribd company logo
USING R/RSTUDIO ON AWS
Barry DeCicco (bdecicco2001@yahoo.com)
Ann Arbor R Users’ Group Meeting
February 13, 2020
WHY USE AWS?
 It’s the most popular cloud package – you will encounter it
at work.
 You can access data sets and run tasks too large for your
personal computer.
 You can leave things running, no matter what you are
doing with your personal computer.
 It’s free for starting usage.
CONTENTS
 How to set up on AWS.
 Remotely accessing AWS.
 Rstudio launching.
 Moving data with Dropbox.
ASSUMPTION: You already have an account with AWS and with
Dropbox.
IMPORTANT NOTE
 The method illustrated here is a low-security method.
 AWS prefers a method using key files, but insists on locking down
the key file on the user’s machine.
 In Windows, this is extremely hard to do, and generally does not
work.
 I’m working on this, and will update this presentation once I have
a consistent working method.
HOW TO SET UP ON AWS
STEPS
(FROM ‘HOW TO RUN RSTUDIO ON AWS IN UNDER 3 MINUTES FOR
FREE’)
 Have an account in Dropbox ready.
 Login to AWS or set up account.
 Choose region for virtual machine (from external website).
 This site will redirect you to the AWS EC2 Management Console (‘EC2
is ‘Elastic Compute’).
 Go through Launch Instance Wizard
 Skip the key file part (it’s a pain; deal with it later)
STEPS
(FROM ‘HOW TO RUN RSTUDIO ON AWS IN UNDER 3 MINUTES FOR
FREE’)
 Copy the IPv4 Public IP into a new browser window to open Rstudio
on ASW.
 Login with ‘rstudio’/your Instance ID.
 Set up Dropbox access
(https://www.edamamecourse.org/docs/using_dropbox_on_your_ec2_m
achine.html)
HOW TO RUN RSTUDIO ON AWS IN
UNDER 3 MINUTES FOR FREE
Step 1:Login to your AWS
account (or create one, if
you don’t have one)
.
STEP 2: GO TO LOUIS
ASLETT’S WEBSITE,
CHOOSE THE REGION
YOU WANT YOUR
VIRTUAL MACHINES
TO STAY, AND CLICK
ON THE LINK NEXT TO
IT (E.G., AMI-
02BF650155C44B475
FOR US WEST, N.
CALIFORNIA). THE
LINK WILL DIRECTLY
LEAD YOU TO THE EC2
MANAGEMENT
CONSOLE.
STEP 3: CLICK
THROUGH THE
LAUNCH INSTANCE
WIZARD. ALMOST
EVERYTHING IS
ALREADY PRE-FILLED
OUT AND YOUR
SCREEN SHOULD
LOOK LIKE THE
SCREENSHOTS BELOW.
DON’T PRESS “REVIEW
AND LAUNCH” YET.
WE NEED TO GO
THROUGH THE
WHOLE PROCESS
ONCE JUST TO BE
SURE, SO PRESS
“NEXT: …”.
STEP 4: CONFIGURE
INSTANCE DETAILS:
KEEP DEFAULTS, PRESS
“NEXT: …”.
STEP 5: ADD
STORAGE: KEEP
DEFAULTS, PRESS
“NEXT: …”.
STEP 5: ADD TAGS:
KEEP DEFAULTS, PRESS
“NEXT: …”.
STEP 6: CONFIGURE
SECURITY: CLICK ON
“ADD RULE”, CHOOSE
HTTP AND CHANGE
“SOURCE” FROM
CUSTOM TO
ANYWHERE. NOW IT
SHOULD LOOK LIKE
THE SCREENSHOT
BELOW. “NEXT: …”.
STEP 7: JUST PRESS
“REVIEW AND
LAUNCH” AND
“LAUNCH” ON THE
NEXT PAGE. THE FINAL
STEP IS TO CHOOSE A
SSH SECURITY KEY.
WHILE IT’S NOT THE
MOST SECURE
SETTING, THE FASTEST
WILL BE TO CHOOSE
TO PROCEED
WITHOUT A KEY. JUST
COPY THE SETTING
FROM THE NEXT
SCREENSHOT AND
PRESS “LAUNCH
INSTANCES”
STEP 7: JUST PRESS
“REVIEW AND
LAUNCH” AND
“LAUNCH” ON THE
NEXT PAGE. THE FINAL
STEP IS TO CHOOSE A
SSH SECURITY KEY.
WHILE IT’S NOT THE
MOST SECURE
SETTING, THE FASTEST
WILL BE TO CHOOSE
TO PROCEED
WITHOUT A KEY. JUST
COPY THE SETTING
FROM THE NEXT
SCREENSHOT AND
PRESS “LAUNCH
INSTANCES”
IT WILL TAKE A FEW MINUTES FOR YOUR INSTANCE TO
START UP. ONCE IT HAS, SELECT THAT INSTANCE TO PULL
UP THE DASHBOARD.
IT WILL TAKE A FEW MINUTES FOR YOUR INSTANCE TO
START UP. ONCE IT HAS, SELECT THAT INSTANCE TO PULL
UP THE DASHBOARD.
NOTE THE “IPV4 PUBLIC
IP” AND “INSTANCE ID”.
COPY THE IPV4 PUBLIC IP
AND PASTE IT INTO THE
ADDRESS OF A NEW
BROWSER WINDOW
NOTE THE “IPv4 Public
IP”. COPY THAT AND
PASTE IT INTO THE
ADDRESS OF A NEW
BROWSER WINDOW.
YOUR USERNAME IS
‘rstudio’ AND THE
PASSWORD IS THE
“Instance ID”
CONNECTING TO DROPBOX
If you chose to use the key pair, and were able to set up the
permissions correctly, then you can SSH and SFTP to your
instance.
If not, you can use Dropbox to sync folders.
CONNECTING TO DROPBOX
If you chose to use the key
pair, and were able to set
up the permissions
correctly, then you can SSH
and SFTP to your instance.
If not, you can use
Dropbox to sync folders.
Run the pre-existing
commands in RStudio
CONNECTING TO DROPBOX
If you chose to use the key
pair, and were able to set
up the permissions
correctly, then you can SSH
and SFTP to your instance.
If not, you can use
Dropbox to sync folders.
Run the pre-existing
commands in Rstudio –
ONE AT A TIME
LAUNCHING AN AWS
SESSION
Credits
Chuck Anderson, for walking me through the secure
connection method.
Medium.com, whose series ‘towards Data Science’
(https://towardsdatascience.com/) has been an invaluable
source of information, explanations and source code.
QUESTIONS?
REFERENCES – AWS
 https://towardsdatascience.com/how-to-run-rstudio-on-aws-in-
under-3-minutes-for-free-65f8d0b6ccda
 https://www.datacamp.com/community/tutorials/aws-ec2-beginner-
tutorial
 http://www.win-vector.com/blog/2018/01/setting-up-rstudio-server-
quickly-on-amazon-ec2/
 https://www.sicara.ai/blog/2017-12-07-speed-up-code-rstudio-aws
 http://strimas.com/r/rstudio-cloud-1/
 https://winscp.net/eng/docs/guide_amazon_ec2
REFERENCES (CONTINUED)
Key File Problems:
https://superuser.com/questions/1296024/window
s-ssh-permissions-for-private-key-are-too-open
https://superuser.com/questions/1309447/how-to-
secure-ssh-private-key-on-windows-10/1311633

More Related Content

What's hot

How to launch an aws ec2 instance
How to launch an aws ec2 instanceHow to launch an aws ec2 instance
How to launch an aws ec2 instance
Andrea Cirillo
 
WeirdAAL (AWS Attack Library)
WeirdAAL (AWS Attack Library) WeirdAAL (AWS Attack Library)
WeirdAAL (AWS Attack Library)
Chris Gates
 
WeirdAAL (Awesome Attack Library) CactusCon 2018
WeirdAAL (Awesome Attack Library) CactusCon 2018WeirdAAL (Awesome Attack Library) CactusCon 2018
WeirdAAL (Awesome Attack Library) CactusCon 2018
Chris Gates
 
PHP deploy 2015 flavor - talk from php tour 2015 luxembourg
PHP deploy 2015 flavor - talk from php tour 2015 luxembourgPHP deploy 2015 flavor - talk from php tour 2015 luxembourg
PHP deploy 2015 flavor - talk from php tour 2015 luxembourg
Quentin Adam
 
Deploying a simple Rails application with AWS Elastic Beanstalk
Deploying a simple Rails application with AWS Elastic BeanstalkDeploying a simple Rails application with AWS Elastic Beanstalk
Deploying a simple Rails application with AWS Elastic Beanstalk
Julien SIMON
 
Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...
Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...
Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...
Corley S.r.l.
 
mykola marzhan - jenkins on aws spot instance
mykola marzhan - jenkins on aws spot instancemykola marzhan - jenkins on aws spot instance
mykola marzhan - jenkins on aws spot instance
Dariia Seimova
 
GUIDE - Migrating AWS EBS backed AMI's between Regions
GUIDE - Migrating AWS EBS backed AMI's between RegionsGUIDE - Migrating AWS EBS backed AMI's between Regions
GUIDE - Migrating AWS EBS backed AMI's between Regions
Rob Linton
 
Amazon ECS (December 2015)
Amazon ECS (December 2015)Amazon ECS (December 2015)
Amazon ECS (December 2015)
Julien SIMON
 
There is No Server: Immutable Infrastructure and Serverless Architecture
There is No Server: Immutable Infrastructure and Serverless ArchitectureThere is No Server: Immutable Infrastructure and Serverless Architecture
There is No Server: Immutable Infrastructure and Serverless Architecture
Sonatype
 
Project final pres
Project final presProject final pres
Project final pres
NicholasSwink
 
IDI 2020 - Containers Meet Serverless
IDI 2020 - Containers Meet ServerlessIDI 2020 - Containers Meet Serverless
IDI 2020 - Containers Meet Serverless
Massimo Ferre'
 
AWS | NAT Gateway Configuration
AWS | NAT Gateway ConfigurationAWS | NAT Gateway Configuration
AWS | NAT Gateway Configuration
Mohan Reddy
 
AWS | VPC Peering
AWS | VPC PeeringAWS | VPC Peering
AWS | VPC Peering
Mohan Reddy
 
Docker Paris #28
Docker Paris #28Docker Paris #28
Docker Paris #28
Julien SIMON
 
Some advice from the guy who handle your applications uptime - scalaIO 2013
Some advice from the guy who handle your applications uptime - scalaIO 2013Some advice from the guy who handle your applications uptime - scalaIO 2013
Some advice from the guy who handle your applications uptime - scalaIO 2013
Quentin Adam
 
Multi-Cloud testing
Multi-Cloud testingMulti-Cloud testing
Multi-Cloud testing
Seema Jethani
 
AWS Webcast - Getting Started with AWS OpsWorks
AWS Webcast - Getting Started with AWS OpsWorksAWS Webcast - Getting Started with AWS OpsWorks
AWS Webcast - Getting Started with AWS OpsWorks
Amazon Web Services
 
Aws meetup building_lambda
Aws meetup building_lambdaAws meetup building_lambda
Aws meetup building_lambda
Adam Book
 
Installing WordPress on AWS
Installing WordPress on AWSInstalling WordPress on AWS
Installing WordPress on AWS
Manish Jain
 

What's hot (20)

How to launch an aws ec2 instance
How to launch an aws ec2 instanceHow to launch an aws ec2 instance
How to launch an aws ec2 instance
 
WeirdAAL (AWS Attack Library)
WeirdAAL (AWS Attack Library) WeirdAAL (AWS Attack Library)
WeirdAAL (AWS Attack Library)
 
WeirdAAL (Awesome Attack Library) CactusCon 2018
WeirdAAL (Awesome Attack Library) CactusCon 2018WeirdAAL (Awesome Attack Library) CactusCon 2018
WeirdAAL (Awesome Attack Library) CactusCon 2018
 
PHP deploy 2015 flavor - talk from php tour 2015 luxembourg
PHP deploy 2015 flavor - talk from php tour 2015 luxembourgPHP deploy 2015 flavor - talk from php tour 2015 luxembourg
PHP deploy 2015 flavor - talk from php tour 2015 luxembourg
 
Deploying a simple Rails application with AWS Elastic Beanstalk
Deploying a simple Rails application with AWS Elastic BeanstalkDeploying a simple Rails application with AWS Elastic Beanstalk
Deploying a simple Rails application with AWS Elastic Beanstalk
 
Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...
Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...
Deploy and Scale your PHP App with AWS ElasticBeanstalk and Docker- PHPTour L...
 
mykola marzhan - jenkins on aws spot instance
mykola marzhan - jenkins on aws spot instancemykola marzhan - jenkins on aws spot instance
mykola marzhan - jenkins on aws spot instance
 
GUIDE - Migrating AWS EBS backed AMI's between Regions
GUIDE - Migrating AWS EBS backed AMI's between RegionsGUIDE - Migrating AWS EBS backed AMI's between Regions
GUIDE - Migrating AWS EBS backed AMI's between Regions
 
Amazon ECS (December 2015)
Amazon ECS (December 2015)Amazon ECS (December 2015)
Amazon ECS (December 2015)
 
There is No Server: Immutable Infrastructure and Serverless Architecture
There is No Server: Immutable Infrastructure and Serverless ArchitectureThere is No Server: Immutable Infrastructure and Serverless Architecture
There is No Server: Immutable Infrastructure and Serverless Architecture
 
Project final pres
Project final presProject final pres
Project final pres
 
IDI 2020 - Containers Meet Serverless
IDI 2020 - Containers Meet ServerlessIDI 2020 - Containers Meet Serverless
IDI 2020 - Containers Meet Serverless
 
AWS | NAT Gateway Configuration
AWS | NAT Gateway ConfigurationAWS | NAT Gateway Configuration
AWS | NAT Gateway Configuration
 
AWS | VPC Peering
AWS | VPC PeeringAWS | VPC Peering
AWS | VPC Peering
 
Docker Paris #28
Docker Paris #28Docker Paris #28
Docker Paris #28
 
Some advice from the guy who handle your applications uptime - scalaIO 2013
Some advice from the guy who handle your applications uptime - scalaIO 2013Some advice from the guy who handle your applications uptime - scalaIO 2013
Some advice from the guy who handle your applications uptime - scalaIO 2013
 
Multi-Cloud testing
Multi-Cloud testingMulti-Cloud testing
Multi-Cloud testing
 
AWS Webcast - Getting Started with AWS OpsWorks
AWS Webcast - Getting Started with AWS OpsWorksAWS Webcast - Getting Started with AWS OpsWorks
AWS Webcast - Getting Started with AWS OpsWorks
 
Aws meetup building_lambda
Aws meetup building_lambdaAws meetup building_lambda
Aws meetup building_lambda
 
Installing WordPress on AWS
Installing WordPress on AWSInstalling WordPress on AWS
Installing WordPress on AWS
 

Similar to Using RStudio on AWS

(SDD420) Amazon WorkSpaces: Advanced Topics and Deep Dive | AWS re:Invent 2014
(SDD420) Amazon WorkSpaces: Advanced Topics and Deep Dive | AWS re:Invent 2014(SDD420) Amazon WorkSpaces: Advanced Topics and Deep Dive | AWS re:Invent 2014
(SDD420) Amazon WorkSpaces: Advanced Topics and Deep Dive | AWS re:Invent 2014
Amazon Web Services
 
Continuous Integration and Deployment Best Practices on AWS (ARC307) | AWS re...
Continuous Integration and Deployment Best Practices on AWS (ARC307) | AWS re...Continuous Integration and Deployment Best Practices on AWS (ARC307) | AWS re...
Continuous Integration and Deployment Best Practices on AWS (ARC307) | AWS re...
Amazon Web Services
 
Continuous Deployment @ AWS Re:Invent
Continuous Deployment @ AWS Re:InventContinuous Deployment @ AWS Re:Invent
Continuous Deployment @ AWS Re:Invent
John Schneider
 
PaaSing Your Code Around
PaaSing Your Code AroundPaaSing Your Code Around
PaaSing Your Code Around
Chris Tankersley
 
Austin Web Architecture
Austin Web ArchitectureAustin Web Architecture
Austin Web Architecture
joaquincasares
 
Masterclass - Amazon WorkSpaces
Masterclass - Amazon WorkSpacesMasterclass - Amazon WorkSpaces
Masterclass - Amazon WorkSpaces
Amazon Web Services
 
WPParra AWS
WPParra AWSWPParra AWS
From Zero to Hadoop: a tutorial for getting started writing Hadoop jobs on Am...
From Zero to Hadoop: a tutorial for getting started writing Hadoop jobs on Am...From Zero to Hadoop: a tutorial for getting started writing Hadoop jobs on Am...
From Zero to Hadoop: a tutorial for getting started writing Hadoop jobs on Am...
Alexander Dean
 
Richard Cole of Amazon Gives Lightning Tallk at BigDataCamp
Richard Cole of Amazon Gives Lightning Tallk at BigDataCampRichard Cole of Amazon Gives Lightning Tallk at BigDataCamp
Richard Cole of Amazon Gives Lightning Tallk at BigDataCamp
BigDataCamp
 
CON319_Interstella GTC CICD for Containers on AWS
CON319_Interstella GTC CICD for Containers on AWSCON319_Interstella GTC CICD for Containers on AWS
CON319_Interstella GTC CICD for Containers on AWS
Amazon Web Services
 
Interstella 8888: CICD for Containers on AWS - CON319 - re:Invent 2017
Interstella 8888: CICD for Containers on AWS - CON319 - re:Invent 2017Interstella 8888: CICD for Containers on AWS - CON319 - re:Invent 2017
Interstella 8888: CICD for Containers on AWS - CON319 - re:Invent 2017
Amazon Web Services
 
AMIMOTO: WordPress + Amazon Web Services Hands-on WARSAW
AMIMOTO: WordPress + Amazon Web Services Hands-on WARSAW AMIMOTO: WordPress + Amazon Web Services Hands-on WARSAW
AMIMOTO: WordPress + Amazon Web Services Hands-on WARSAW
Kel
 
WordPress + Amazon Web Services Hands-on WARSAW
WordPress + Amazon Web Services Hands-on WARSAWWordPress + Amazon Web Services Hands-on WARSAW
WordPress + Amazon Web Services Hands-on WARSAW
Matt Pilarski
 
GPSTEC319-Build Once Deploy Many Architecting and Building Automated Reusable...
GPSTEC319-Build Once Deploy Many Architecting and Building Automated Reusable...GPSTEC319-Build Once Deploy Many Architecting and Building Automated Reusable...
GPSTEC319-Build Once Deploy Many Architecting and Building Automated Reusable...
Amazon Web Services
 
Setting up JupyterHub on AWS
Setting up JupyterHub on AWSSetting up JupyterHub on AWS
Setting up JupyterHub on AWS
Mel Denisse
 
How to deploy laravel application on aws ec2
How to deploy laravel application on aws ec2How to deploy laravel application on aws ec2
How to deploy laravel application on aws ec2
Katy Slemon
 
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibboleth
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibbolethAws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibboleth
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibboleth
remayssat
 
Workspaces overview
Workspaces overviewWorkspaces overview
Workspaces overview
John Louis Garcia
 
Amazon AWS Workspace Howto
Amazon AWS Workspace HowtoAmazon AWS Workspace Howto
Amazon AWS Workspace Howto
mailbhargav
 
From Code to the Monkeys: Continuous Delivery at Netflix
From Code to the Monkeys: Continuous Delivery at NetflixFrom Code to the Monkeys: Continuous Delivery at Netflix
From Code to the Monkeys: Continuous Delivery at Netflix
Dianne Marsh
 

Similar to Using RStudio on AWS (20)

(SDD420) Amazon WorkSpaces: Advanced Topics and Deep Dive | AWS re:Invent 2014
(SDD420) Amazon WorkSpaces: Advanced Topics and Deep Dive | AWS re:Invent 2014(SDD420) Amazon WorkSpaces: Advanced Topics and Deep Dive | AWS re:Invent 2014
(SDD420) Amazon WorkSpaces: Advanced Topics and Deep Dive | AWS re:Invent 2014
 
Continuous Integration and Deployment Best Practices on AWS (ARC307) | AWS re...
Continuous Integration and Deployment Best Practices on AWS (ARC307) | AWS re...Continuous Integration and Deployment Best Practices on AWS (ARC307) | AWS re...
Continuous Integration and Deployment Best Practices on AWS (ARC307) | AWS re...
 
Continuous Deployment @ AWS Re:Invent
Continuous Deployment @ AWS Re:InventContinuous Deployment @ AWS Re:Invent
Continuous Deployment @ AWS Re:Invent
 
PaaSing Your Code Around
PaaSing Your Code AroundPaaSing Your Code Around
PaaSing Your Code Around
 
Austin Web Architecture
Austin Web ArchitectureAustin Web Architecture
Austin Web Architecture
 
Masterclass - Amazon WorkSpaces
Masterclass - Amazon WorkSpacesMasterclass - Amazon WorkSpaces
Masterclass - Amazon WorkSpaces
 
WPParra AWS
WPParra AWSWPParra AWS
WPParra AWS
 
From Zero to Hadoop: a tutorial for getting started writing Hadoop jobs on Am...
From Zero to Hadoop: a tutorial for getting started writing Hadoop jobs on Am...From Zero to Hadoop: a tutorial for getting started writing Hadoop jobs on Am...
From Zero to Hadoop: a tutorial for getting started writing Hadoop jobs on Am...
 
Richard Cole of Amazon Gives Lightning Tallk at BigDataCamp
Richard Cole of Amazon Gives Lightning Tallk at BigDataCampRichard Cole of Amazon Gives Lightning Tallk at BigDataCamp
Richard Cole of Amazon Gives Lightning Tallk at BigDataCamp
 
CON319_Interstella GTC CICD for Containers on AWS
CON319_Interstella GTC CICD for Containers on AWSCON319_Interstella GTC CICD for Containers on AWS
CON319_Interstella GTC CICD for Containers on AWS
 
Interstella 8888: CICD for Containers on AWS - CON319 - re:Invent 2017
Interstella 8888: CICD for Containers on AWS - CON319 - re:Invent 2017Interstella 8888: CICD for Containers on AWS - CON319 - re:Invent 2017
Interstella 8888: CICD for Containers on AWS - CON319 - re:Invent 2017
 
AMIMOTO: WordPress + Amazon Web Services Hands-on WARSAW
AMIMOTO: WordPress + Amazon Web Services Hands-on WARSAW AMIMOTO: WordPress + Amazon Web Services Hands-on WARSAW
AMIMOTO: WordPress + Amazon Web Services Hands-on WARSAW
 
WordPress + Amazon Web Services Hands-on WARSAW
WordPress + Amazon Web Services Hands-on WARSAWWordPress + Amazon Web Services Hands-on WARSAW
WordPress + Amazon Web Services Hands-on WARSAW
 
GPSTEC319-Build Once Deploy Many Architecting and Building Automated Reusable...
GPSTEC319-Build Once Deploy Many Architecting and Building Automated Reusable...GPSTEC319-Build Once Deploy Many Architecting and Building Automated Reusable...
GPSTEC319-Build Once Deploy Many Architecting and Building Automated Reusable...
 
Setting up JupyterHub on AWS
Setting up JupyterHub on AWSSetting up JupyterHub on AWS
Setting up JupyterHub on AWS
 
How to deploy laravel application on aws ec2
How to deploy laravel application on aws ec2How to deploy laravel application on aws ec2
How to deploy laravel application on aws ec2
 
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibboleth
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibbolethAws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibboleth
Aws whitepaper-single-sign-on-integrating-aws-open-ldap-and-shibboleth
 
Workspaces overview
Workspaces overviewWorkspaces overview
Workspaces overview
 
Amazon AWS Workspace Howto
Amazon AWS Workspace HowtoAmazon AWS Workspace Howto
Amazon AWS Workspace Howto
 
From Code to the Monkeys: Continuous Delivery at Netflix
From Code to the Monkeys: Continuous Delivery at NetflixFrom Code to the Monkeys: Continuous Delivery at Netflix
From Code to the Monkeys: Continuous Delivery at Netflix
 

More from Barry DeCicco

Easy HTML Tables in RStudio with Tabyl and kableExtra
Easy HTML Tables in RStudio with Tabyl and kableExtraEasy HTML Tables in RStudio with Tabyl and kableExtra
Easy HTML Tables in RStudio with Tabyl and kableExtra
Barry DeCicco
 
Introduction to r studio on aws 2020 05_06
Introduction to r studio on aws 2020 05_06Introduction to r studio on aws 2020 05_06
Introduction to r studio on aws 2020 05_06
Barry DeCicco
 
Beginning text analysis
Beginning text analysisBeginning text analysis
Beginning text analysis
Barry DeCicco
 
Up and running with python
Up and running with pythonUp and running with python
Up and running with python
Barry DeCicco
 
Calling python from r
Calling python from rCalling python from r
Calling python from r
Barry DeCicco
 
Draft sas and r and sas (may, 2018 asa meeting)
Draft sas and r and sas (may, 2018 asa meeting)Draft sas and r and sas (may, 2018 asa meeting)
Draft sas and r and sas (may, 2018 asa meeting)
Barry DeCicco
 
Calling r from sas (msug meeting, feb 17, 2018) revised
Calling r from sas (msug meeting, feb 17, 2018)   revisedCalling r from sas (msug meeting, feb 17, 2018)   revised
Calling r from sas (msug meeting, feb 17, 2018) revised
Barry DeCicco
 

More from Barry DeCicco (7)

Easy HTML Tables in RStudio with Tabyl and kableExtra
Easy HTML Tables in RStudio with Tabyl and kableExtraEasy HTML Tables in RStudio with Tabyl and kableExtra
Easy HTML Tables in RStudio with Tabyl and kableExtra
 
Introduction to r studio on aws 2020 05_06
Introduction to r studio on aws 2020 05_06Introduction to r studio on aws 2020 05_06
Introduction to r studio on aws 2020 05_06
 
Beginning text analysis
Beginning text analysisBeginning text analysis
Beginning text analysis
 
Up and running with python
Up and running with pythonUp and running with python
Up and running with python
 
Calling python from r
Calling python from rCalling python from r
Calling python from r
 
Draft sas and r and sas (may, 2018 asa meeting)
Draft sas and r and sas (may, 2018 asa meeting)Draft sas and r and sas (may, 2018 asa meeting)
Draft sas and r and sas (may, 2018 asa meeting)
 
Calling r from sas (msug meeting, feb 17, 2018) revised
Calling r from sas (msug meeting, feb 17, 2018)   revisedCalling r from sas (msug meeting, feb 17, 2018)   revised
Calling r from sas (msug meeting, feb 17, 2018) revised
 

Recently uploaded

Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......
Sachin Paul
 
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
eoxhsaa
 
一比一原版格里菲斯大学毕业证(Griffith毕业证书)学历如何办理
一比一原版格里菲斯大学毕业证(Griffith毕业证书)学历如何办理一比一原版格里菲斯大学毕业证(Griffith毕业证书)学历如何办理
一比一原版格里菲斯大学毕业证(Griffith毕业证书)学历如何办理
lzdvtmy8
 
DSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelinesDSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelines
Timothy Spann
 
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
oaxefes
 
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
bopyb
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
nuttdpt
 
A presentation that explain the Power BI Licensing
A presentation that explain the Power BI LicensingA presentation that explain the Power BI Licensing
A presentation that explain the Power BI Licensing
AlessioFois2
 
一比一原版(harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(harvard毕业证书)哈佛大学毕业证如何办理一比一原版(harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(harvard毕业证书)哈佛大学毕业证如何办理
taqyea
 
一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理
一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理
一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理
slg6lamcq
 
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
Social Samosa
 
一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理
一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理
一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理
xclpvhuk
 
Sample Devops SRE Product Companies .pdf
Sample Devops SRE  Product Companies .pdfSample Devops SRE  Product Companies .pdf
Sample Devops SRE Product Companies .pdf
Vineet
 
一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理
一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理
一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理
ytypuem
 
End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024
Lars Albertsson
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
ihavuls
 
Template xxxxxxxx ssssssssssss Sertifikat.pptx
Template xxxxxxxx ssssssssssss Sertifikat.pptxTemplate xxxxxxxx ssssssssssss Sertifikat.pptx
Template xxxxxxxx ssssssssssss Sertifikat.pptx
TeukuEriSyahputra
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
bmucuha
 
writing report business partner b1+ .pdf
writing report business partner b1+ .pdfwriting report business partner b1+ .pdf
writing report business partner b1+ .pdf
VyNguyen709676
 
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Aggregage
 

Recently uploaded (20)

Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......Palo Alto Cortex XDR presentation .......
Palo Alto Cortex XDR presentation .......
 
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
一比一原版多伦多大学毕业证(UofT毕业证书)学历如何办理
 
一比一原版格里菲斯大学毕业证(Griffith毕业证书)学历如何办理
一比一原版格里菲斯大学毕业证(Griffith毕业证书)学历如何办理一比一原版格里菲斯大学毕业证(Griffith毕业证书)学历如何办理
一比一原版格里菲斯大学毕业证(Griffith毕业证书)学历如何办理
 
DSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelinesDSSML24_tspann_CodelessGenerativeAIPipelines
DSSML24_tspann_CodelessGenerativeAIPipelines
 
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
一比一原版卡尔加里大学毕业证(uc毕业证)如何办理
 
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
 
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
一比一原版(UCSB文凭证书)圣芭芭拉分校毕业证如何办理
 
A presentation that explain the Power BI Licensing
A presentation that explain the Power BI LicensingA presentation that explain the Power BI Licensing
A presentation that explain the Power BI Licensing
 
一比一原版(harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(harvard毕业证书)哈佛大学毕业证如何办理一比一原版(harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(harvard毕业证书)哈佛大学毕业证如何办理
 
一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理
一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理
一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理
 
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
 
一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理
一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理
一比一原版(Unimelb毕业证书)墨尔本大学毕业证如何办理
 
Sample Devops SRE Product Companies .pdf
Sample Devops SRE  Product Companies .pdfSample Devops SRE  Product Companies .pdf
Sample Devops SRE Product Companies .pdf
 
一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理
一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理
一比一原版(曼大毕业证书)曼尼托巴大学毕业证如何办理
 
End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
 
Template xxxxxxxx ssssssssssss Sertifikat.pptx
Template xxxxxxxx ssssssssssss Sertifikat.pptxTemplate xxxxxxxx ssssssssssss Sertifikat.pptx
Template xxxxxxxx ssssssssssss Sertifikat.pptx
 
一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理一比一原版(UO毕业证)渥太华大学毕业证如何办理
一比一原版(UO毕业证)渥太华大学毕业证如何办理
 
writing report business partner b1+ .pdf
writing report business partner b1+ .pdfwriting report business partner b1+ .pdf
writing report business partner b1+ .pdf
 
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
 

Using RStudio on AWS

  • 1. USING R/RSTUDIO ON AWS Barry DeCicco (bdecicco2001@yahoo.com) Ann Arbor R Users’ Group Meeting February 13, 2020
  • 2. WHY USE AWS?  It’s the most popular cloud package – you will encounter it at work.  You can access data sets and run tasks too large for your personal computer.  You can leave things running, no matter what you are doing with your personal computer.  It’s free for starting usage.
  • 3. CONTENTS  How to set up on AWS.  Remotely accessing AWS.  Rstudio launching.  Moving data with Dropbox. ASSUMPTION: You already have an account with AWS and with Dropbox.
  • 4. IMPORTANT NOTE  The method illustrated here is a low-security method.  AWS prefers a method using key files, but insists on locking down the key file on the user’s machine.  In Windows, this is extremely hard to do, and generally does not work.  I’m working on this, and will update this presentation once I have a consistent working method.
  • 5. HOW TO SET UP ON AWS
  • 6. STEPS (FROM ‘HOW TO RUN RSTUDIO ON AWS IN UNDER 3 MINUTES FOR FREE’)  Have an account in Dropbox ready.  Login to AWS or set up account.  Choose region for virtual machine (from external website).  This site will redirect you to the AWS EC2 Management Console (‘EC2 is ‘Elastic Compute’).  Go through Launch Instance Wizard  Skip the key file part (it’s a pain; deal with it later)
  • 7. STEPS (FROM ‘HOW TO RUN RSTUDIO ON AWS IN UNDER 3 MINUTES FOR FREE’)  Copy the IPv4 Public IP into a new browser window to open Rstudio on ASW.  Login with ‘rstudio’/your Instance ID.  Set up Dropbox access (https://www.edamamecourse.org/docs/using_dropbox_on_your_ec2_m achine.html)
  • 8. HOW TO RUN RSTUDIO ON AWS IN UNDER 3 MINUTES FOR FREE Step 1:Login to your AWS account (or create one, if you don’t have one) .
  • 9. STEP 2: GO TO LOUIS ASLETT’S WEBSITE, CHOOSE THE REGION YOU WANT YOUR VIRTUAL MACHINES TO STAY, AND CLICK ON THE LINK NEXT TO IT (E.G., AMI- 02BF650155C44B475 FOR US WEST, N. CALIFORNIA). THE LINK WILL DIRECTLY LEAD YOU TO THE EC2 MANAGEMENT CONSOLE.
  • 10. STEP 3: CLICK THROUGH THE LAUNCH INSTANCE WIZARD. ALMOST EVERYTHING IS ALREADY PRE-FILLED OUT AND YOUR SCREEN SHOULD LOOK LIKE THE SCREENSHOTS BELOW. DON’T PRESS “REVIEW AND LAUNCH” YET. WE NEED TO GO THROUGH THE WHOLE PROCESS ONCE JUST TO BE SURE, SO PRESS “NEXT: …”.
  • 11. STEP 4: CONFIGURE INSTANCE DETAILS: KEEP DEFAULTS, PRESS “NEXT: …”.
  • 12. STEP 5: ADD STORAGE: KEEP DEFAULTS, PRESS “NEXT: …”.
  • 13. STEP 5: ADD TAGS: KEEP DEFAULTS, PRESS “NEXT: …”.
  • 14. STEP 6: CONFIGURE SECURITY: CLICK ON “ADD RULE”, CHOOSE HTTP AND CHANGE “SOURCE” FROM CUSTOM TO ANYWHERE. NOW IT SHOULD LOOK LIKE THE SCREENSHOT BELOW. “NEXT: …”.
  • 15. STEP 7: JUST PRESS “REVIEW AND LAUNCH” AND “LAUNCH” ON THE NEXT PAGE. THE FINAL STEP IS TO CHOOSE A SSH SECURITY KEY. WHILE IT’S NOT THE MOST SECURE SETTING, THE FASTEST WILL BE TO CHOOSE TO PROCEED WITHOUT A KEY. JUST COPY THE SETTING FROM THE NEXT SCREENSHOT AND PRESS “LAUNCH INSTANCES”
  • 16. STEP 7: JUST PRESS “REVIEW AND LAUNCH” AND “LAUNCH” ON THE NEXT PAGE. THE FINAL STEP IS TO CHOOSE A SSH SECURITY KEY. WHILE IT’S NOT THE MOST SECURE SETTING, THE FASTEST WILL BE TO CHOOSE TO PROCEED WITHOUT A KEY. JUST COPY THE SETTING FROM THE NEXT SCREENSHOT AND PRESS “LAUNCH INSTANCES”
  • 17. IT WILL TAKE A FEW MINUTES FOR YOUR INSTANCE TO START UP. ONCE IT HAS, SELECT THAT INSTANCE TO PULL UP THE DASHBOARD.
  • 18. IT WILL TAKE A FEW MINUTES FOR YOUR INSTANCE TO START UP. ONCE IT HAS, SELECT THAT INSTANCE TO PULL UP THE DASHBOARD.
  • 19. NOTE THE “IPV4 PUBLIC IP” AND “INSTANCE ID”. COPY THE IPV4 PUBLIC IP AND PASTE IT INTO THE ADDRESS OF A NEW BROWSER WINDOW
  • 20. NOTE THE “IPv4 Public IP”. COPY THAT AND PASTE IT INTO THE ADDRESS OF A NEW BROWSER WINDOW. YOUR USERNAME IS ‘rstudio’ AND THE PASSWORD IS THE “Instance ID”
  • 21. CONNECTING TO DROPBOX If you chose to use the key pair, and were able to set up the permissions correctly, then you can SSH and SFTP to your instance. If not, you can use Dropbox to sync folders.
  • 22. CONNECTING TO DROPBOX If you chose to use the key pair, and were able to set up the permissions correctly, then you can SSH and SFTP to your instance. If not, you can use Dropbox to sync folders. Run the pre-existing commands in RStudio
  • 23. CONNECTING TO DROPBOX If you chose to use the key pair, and were able to set up the permissions correctly, then you can SSH and SFTP to your instance. If not, you can use Dropbox to sync folders. Run the pre-existing commands in Rstudio – ONE AT A TIME
  • 24.
  • 25.
  • 27.
  • 28. Credits Chuck Anderson, for walking me through the secure connection method. Medium.com, whose series ‘towards Data Science’ (https://towardsdatascience.com/) has been an invaluable source of information, explanations and source code.
  • 30. REFERENCES – AWS  https://towardsdatascience.com/how-to-run-rstudio-on-aws-in- under-3-minutes-for-free-65f8d0b6ccda  https://www.datacamp.com/community/tutorials/aws-ec2-beginner- tutorial  http://www.win-vector.com/blog/2018/01/setting-up-rstudio-server- quickly-on-amazon-ec2/  https://www.sicara.ai/blog/2017-12-07-speed-up-code-rstudio-aws  http://strimas.com/r/rstudio-cloud-1/  https://winscp.net/eng/docs/guide_amazon_ec2
  • 31. REFERENCES (CONTINUED) Key File Problems: https://superuser.com/questions/1296024/window s-ssh-permissions-for-private-key-are-too-open https://superuser.com/questions/1309447/how-to- secure-ssh-private-key-on-windows-10/1311633