Skip to content

Instantly share code, notes, and snippets.

@qwo
Created December 22, 2013 09:53
Show Gist options
  • Save qwo/8080432 to your computer and use it in GitHub Desktop.
Save qwo/8080432 to your computer and use it in GitHub Desktop.
homebrew ec2
#copy pasted from this pastebin
http://pastebin.com/zjh0ZyUh
AWS Cheat Sheat
===============
Install
-------
Mac OS
$ brew install ec2-api-tools
Before you can use these tools you must export some variables to your $SHELL
and download your X.509 certificate and private key from Amazon Web Services.
Your certificate and private key are available at:
http://aws-portal.amazon.com/gp/aws/developer/account/index.html?action=access-key
Download two ".pem" files, one starting with `pk-`, and one starting with `cert-`.
You need to put both into a folder in your home directory, `~/.ec2`.
To export the needed variables, add them to your dotfiles.
* On Bash, add them to `~/.bash_profile`.
* On Zsh, add them to `~/.zprofile` instead.
export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home"
export EC2_PRIVATE_KEY="$(/bin/ls $HOME/.ec2/pk-*.pem)"
export EC2_CERT="$(/bin/ls $HOME/.ec2/cert-*.pem)"
export EC2_HOME="/usr/local/Cellar/ec2-api-tools/1.5.0.1/jars"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment