Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify setup docs with startup script #12

Closed
stsievert opened this issue Sep 20, 2015 · 1 comment
Closed

Clarify setup docs with startup script #12

stsievert opened this issue Sep 20, 2015 · 1 comment
Assignees

Comments

@stsievert
Copy link
Member

While debugging #11, I made a script to debug more easily. @lalitkumarj suggested guiding users through making this script, which might make the install/setup process easier.

# if no IAM user:
#   * AWS > Identity and Access Management > Users > Add User
# if IAM user:
#   * AWS > IAM > Users > select username > User Actions > Manage Access Keys >
#     Create Access Key > Download credentials
# more details found at [1]
# [1]:http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSGettingStartedGuide/AWSCredentials.html
export AWS_ACCESS_KEY_ID=<access>
export AWS_SECRET_ACCESS_KEY=<secret>

# AWS > EC2 > Key Pairs > Create Key Pair
# KEY_FILE is the path to the downloaded file
# KEY_PAIR is the name entered in Amazon of the key
# (i.e, if "key" created, KEY_PAIR="key" not "key.pem")
export KEY_FILE=/Users/scott/Classes/security/AWS/SS_NEXT.pem
export KEY_PAIR=SS_NEXT

chmod 400 $KEY_FILE

cd /Users/scott/Desktop/NEXT/ec2
source activate py27

# This might be a useful alias
alias next_ec2='python next_ec2.py --key-pair=$KEY_PAIR --identity-file=$KEY_FILE'

# Launching a bucket into S3. Either run the command below or define AWS_BUCKET_NAME
#python next_ec2.py --key-pair=$KEY_PAIR --identity-file=$KEY_FILE createbucket SS_next
export AWS_BUCKET_NAME=<bucket uiud>
python next_ec2.py --key-pair=$KEY_PAIR --identity-file=$KEY_FILE launch SS_next

# after starts print out red and green `rabbitmqmonitor_1`, go to URL [2]
# launch scripts and expirements
#
# [2]:http://ec2-52-88-225-126.us-west-2.compute.amazonaws.com:8000/dashboard/experiment_list
@stsievert stsievert self-assigned this Sep 24, 2015
@stsievert
Copy link
Member Author

We have a NEXT cheat sheet that covers almost exactly this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant