Start stopped instances by tag
Start all instances that are tagged with role=reserve
.
Requires AWS CLI and jq.
aws ec2 describe-instances --filters Name=tag:role,Values="reserve" | jq ".Reservations[].Instances[].InstanceId" -r | xargs aws ec2 start-instances --instance-ids
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#