Created
April 15, 2013 18:26
-
-
Save jamiew/5390200 to your computer and use it in GitHub Desktop.
ec2-related bash aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export EC2_PRIVATE_KEY="$(/bin/ls "$HOME"/.ec2/pk-*.pem | /usr/bin/head -1)" | |
export EC2_CERT="$(/bin/ls "$HOME"/.ec2/cert-*.pem | /usr/bin/head -1)" | |
export EC2_HOME="/usr/local/Library/LinkedKegs/ec2-api-tools/jars" | |
export EC2_REGION="us-east-1" | |
export EC2_URL="https://${EC2_REGION}.ec2.amazonaws.com/" | |
alias instances="ec2-describe-instances | grep INSTANCE | awk '{ print \$2,\$4,\$6 }'" | |
alias launch_ubuntu_instance='ec2-run-instances ami-7c2da54c -t t1.micro' # http://cloud-images.ubuntu.com/releases/precise/release/ | |
export VHX_EC2_AMI="ami-9ef96af7" # vhx transcoder2 us-east-1 | |
alias ec2micro='ec2-run-instances $VHX_EC2_AMI -t t1.micro' | |
alias ec2small='ec2-run-instances $VHX_EC2_AMI -t m1.small' | |
alias ec2medium='ec2-run-instances $VHX_EC2_AMI -t c1.medium' | |
alias ec2large='ec2-run-instances $VHX_EC2_AMI -t c1.xlarge' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment