The purpose of this repository is to store the tools necessary to build and configure the ec2.cs291.com SSH jumpbox.
This machine can be used to push elastic beanstalk deployments for the primary project, and is also used to deploy to AWS lambda in project 1.
Install terraform to your operating system (brew install terraform). The following assumes you have an AWS profile called scalableinternetservices-admin that has a keypair for an account with IAM admin-level permissions.
cd terraform
AWS_PROFILE=scalableinternetservices-admin terraform init
AWS_PROFILE=scalableinternetservices-admin terraform applyrsync -auv scripts/ [email protected]:scp launch_tsung.sh [email protected]:
ssh [email protected] 'sudo mv launch_tsung.sh /usr/bin/'Fetch your AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY for your scalableinternetservices-admin user and then run
aws configure on the jumpbox. Use us-west-2 as the default region.
Run crontab -e and paste in the following:
[email protected]
*/5 * * * * ~/scalable_cleanup.py
Make a list of teamnames in usernames.txt and then run:
mkdir credentials
cd credentials
for username in $(cat ../usernames.txt); do
scalable_admin aws $username
done
cd -rsync -auv credentials [email protected]:ssh [email protected] ./prepare_accounts.shFollow these instructions to fetch a credentials json file: https://pythonhosted.org/PyDrive/quickstart.html#authentication
Move that file to $HOME/.config/share_credentials.json.
cd share_credentials
pip install -r requirements.txt