Control the power state of EC2 instances tagged with Project.
Note: Currently this utility does not prompt for confirmation before changing the power state of all instances for a project. Use with caution!
- ec2-api-tools
You must ensure that AWS_ACCESS_KEY & AWS_SECRET_KEY are set in your environment
Start all instances for a project
$ ./ec2-management.sh on P001
Stop all instances for a project
$ ./ec2-management.sh off P001
Start all instances at 07:00 Monday-Friday
0 7 * * 1,2,3,4,5 $PATH_TO_EC2_MANAGEMENT/ec2-management.sh on P001
Stop all instances at 19:00 Monday-Friday
0 19 * * 1,2,3,4,5 $PATH_TO_EC2_MANAGEMENT/ec2-management.sh off P001