Start and stop EC2s using tags. now in color!
Project description
trafficlight
start and stop ec2 instances.
installation
install with pip
pip install trafficlight
install from git repo
https://bitbucket.org/rednap/trafficlight
after cloning the repo to your machine. change directories into the repo.
$ cd trafficlight
$ sudo cp trafficlight /usr/local/bin
confirm it's installed
$ which trafficlight
dependencies
-aws cli (installed and configured)
-python3 (my env has python aliased to python3, if yours is different you'll need to change the shebang line)
usage
show trafficlight help page, including usage and flags.
$ trafficlight -h
switch instance with tag Name:example. if instance is stopped it will start, if it's running it will stop.
$ trafficlight example
start all instances with tag Name:example. if instances are started already they will stay up.
$ trafficlight example -g
stop all instances tag Name:example. if instances are stopped already they will stay stopped.
$ trafficlight example -r
stop all instances with tag Products:example.
$ trafficlight example --key Products -r
list all ec2s and do nothing.
$ trafficlight -a
list all ec2s and stop them.
$ trafficlight -ar
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for trafficlight-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b13d942a1fff313174d301c997ea5ae932ff8d08f5cee674845cda035f289803 |
|
MD5 | 4d6a7b0ea55edeca84f4e79a3bc9516a |
|
BLAKE2b-256 | 33887988dd72b62bf026d2646b0cbf40436d657f52967a4aed238fa35a333130 |