Created
May 18, 2018 20:05
-
-
Save fredhsu/98da1eb048cd7db2ae62c5bbcca2b6be to your computer and use it in GitHub Desktop.
Start all ec2 instances with a specific usage tag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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