Skip to content

Instantly share code, notes, and snippets.

@fredhsu
Created May 18, 2018 20:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fredhsu/98da1eb048cd7db2ae62c5bbcca2b6be to your computer and use it in GitHub Desktop.
Save fredhsu/98da1eb048cd7db2ae62c5bbcca2b6be to your computer and use it in GitHub Desktop.
Start all ec2 instances with a specific usage tag
aws ec2 start-instances --instance-ids $(aws ec2 describe-instances --filters "Name=tag:Usage,Values=kube" --query 'Reservations[*].Instances[*].[InstanceId]' --output text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment