3v6w7q
Last Updated: February 25, 2016
·
354
· lorin
Me pixel

Start stopped instances by tag

aws

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 
Say Thanks
Respond