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/
Written by Lorin Hochstein
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Related Tags
#aws
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#