Last Updated: February 25, 2016
·
1.204K
· Lorin Hochstein

Start stopped instances by tag

Start all instances that are tagged with role=reserve.
Requires [AWS CLI][1] and [jq][2].

aws ec2 describe-instances --filters Name=tag:role,Values="reserve" | jq ".Reservations[].Instances[].InstanceId" -r | xargs aws ec2 start-instances --instance-ids 

[1]:http://docs.aws.amazon.com/cli/latest/index.html#
[2]: http://stedolan.github.io/jq/