need access key id on local machine
Log into the EC2 instance using SSH as user centos. The argument to the "-i" option is the /location/filename of your private key (i.e. the *.pem file you downloaded from the AWS Console).
ssh -i brett-20160630.pem [email protected]
You should not be prompted for any password since the private key in the *.pem file is effectively your password - if you look at ~/.ssh/authorized_keys, you will notice that this file has already been pre-populated with the public key that corresponds to the private key in your *.pem file.
Now it is just like any other real machine. Switch to the root user as follows
sudo su -
You will notice that the only package repositories that are included and enabled are the default CentOS ones. If you want to include the EPEL repository do the following (do a second "yum repolist" to verify the repository is install and enabled)
yum repolist
yum install wget
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-7.noarch.rpm
rpm -ivh epel-release-7-7.noarch.rpm
yum repolist
yum update
yum install R
install aws bundle if not using amazon linux (as root) wget https://s3.amazonaws.com/aws-cli/awscli-bundle.zip unzip awscli-bundle.zip
need to run "aws configure" before using any aws cli tool
for yr in 2005 2006; do aws s3 cp $yr.csv.bz2 s3://brs-analytics/airline/$yr.csv.bz2; done