Last active
January 12, 2021 02:20
-
-
Save grenade/454d869bd7b52cbed950be662457a587 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# list bb spot instances: | |
for i in $(aws ec2 describe-instances --region us-east-1 --filter Name=tag-key,Values=Name "Name=tag-value,Values=b-2008-spot-*" --query 'Reservations[*].Instances[*].Tags[?Key==`Name`].Value' --output text); do echo $i; done | |
# rdp bb spot instances: | |
for name in $(aws ec2 describe-instances --region us-east-1 --filter Name=tag-key,Values=Name "Name=tag-value,Values=b-2008-spot-*" --query 'Reservations[*].Instances[*].Tags[?Key==`Name`].Value' --output text); do `rdp cltbld@$name &>/dev/null &`; done | |
# rdesktop tc instances | |
for ip in $(aws ec2 describe-instances --profile taskcluster --region us-west-2 --filters Name=tag-key,Values=WorkerType "Name=tag-value,Values=win2012" --query 'Reservations[*].Instances[*].PublicIpAddress' --output text); do `nohup rdesktop -u Administrator -p ******** -k en-gb -g 2400x1200 -a 16 -K -r clipboard:CLIPBOARD $ip &>/dev/null &`; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment