Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Make EC2 a little bit less of a pain.
Shell
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
activate.sh
config.sh
ec2-metadata
list-all.sh
my-name.sh
my-region.sh
name-instances.sh
start-all.sh
start-instances.sh
stop-all.sh
stop-instances.sh
util.sh

README.md

easy-ec2

What is it?

Effectively, nothing more then a bunch of bash/zsh scripts and helpers to simplify working with EC2 from the command line. These scripts take some of the grunt work out of starting your instances; you can quickly start instances in every region, get a list of instances and their tags in a conveient format, and also some starter scripts to bootstrap (your instances) to success.

Why?

EC2 is great, except when it's not. Want to run something on multiple regions? Great, go lookup the AMI number for each region, then setup your keys for each region, then go and run ec2-run-instances for each region; am I getting the point across? It's a pain, and when all you want is to start a bunch of machines it gets in the way.

How do I use it

> cd $SOMEWHERE
> git clone github.com/rjpower/easy-ec2.git 
> source easy-ec2/activate.sh

> $EDITOR config.sh

> start-instances <# of instances> <us-east-1|us-west-1...> <name for instances>
> list-instances 
i-0001 my-server 10.1.2.3 123.4.5.6
i-0002 my-server 10.1.2.4 123.4.5.7

>stop-instances <region> <name>

# stop instances named "name" in all regions
> stop-all <name>
Something went wrong with that request. Please try again.