资 源 简 介
Intro
Simple bash script that will fetch instances list from AWS and propose a list of EC2 instances to connect to.
It will always use a cached copy of your EC2 instances list, which can be refreshed using the "--refresh" command line parameter or manually via the first menu option.
Tested on Mac OSX Lion (10.7).
Setup
Requirements
Amazon EC2 API Tools installed with PATH and all "EC2_xxx" environment variables set
Your Amazon PEM key (the one you use to SSH to your EC2 instances)
Sample EC2 environment variables
These are sample environment variables which you can set in your ~/.bash_profile:
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home/export AWS_HOME=~/.awsexport EC2_REGION=eu-west-1export EC2_HOME=$AWS_HOME/ec2export EC2_PRIVATE_KEY=`ls $AWS_HOME/pk-*.pem`export