cloudbees/training-books-ms

Name: training-books-ms

Owner: CloudBees

Description: null

Created: 2016-01-05 09:41:37.0

Updated: 2018-05-11 17:49:08.0

Pushed: 2017-08-21 19:02:34.0

Homepage: null

Size: 52990

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

EC2 Setup

Requirements
Preparation
nsible

 pip install passlib

=$(python -c "from passlib.hash import sha512_crypt; import getpass; print sha512_crypt.encrypt(getpass.getpass())") # Use cb as password

rt INSTANCES=1
rt AWS_ACCESS_KEY_ID='[YOUR_ACCESS_KEY_ID]'
rt AWS_SECRET_ACCESS_KEY='[YOUR_SECRET_ACCESS_KEY]'
ort PATH_TO_PEM=~/.ssh/jenkins-training-key.pem
ort PATH_TO_PEM=~/.ssh/jenkins-docker-training.pem # PEM created through CB AWS console
rt PATH_TO_PEM=~/.ssh/jenkins.pem # CB PEM

 "
dentials]
access_key_id = $AWS_ACCESS_KEY_ID
secret_access_key = $AWS_SECRET_ACCESS_KEY
/.boto
Create new instances
 ansible-playbook aws.yml \
--private-key=$PATH_TO_PEM \
--extra-vars "hosts_group=ec2hosts password=$PASS instances=$INSTANCES preload=true"
Provision existing instances
 ansible-playbook aws.yml \
--private-key=$PATH_TO_PEM \
-i ec2.py \
--limit tag_Name_jenkins_docker_training \
--extra-vars "hosts_group=tag_Name_jenkins_docker_training password=$PASS"
Get the list of instances
 ./ec2.py --list
SSH to an instance
ANCE_IP=[INSTANCE_IP]

 ssh -i $PATH_TO_PEM ubuntu@$INSTANCE_IP

Trainees Setup

TODO


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.