Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jamiew
Created April 15, 2013 18:26
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamiew/5390200 to your computer and use it in GitHub Desktop.
Save jamiew/5390200 to your computer and use it in GitHub Desktop.
ec2-related bash aliases
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