Last active
August 18, 2016 23:59
-
-
Save florin-andrei-curbside/519584408725f8b8dc5dc6d009263c91 to your computer and use it in GitHub Desktop.
run a command in all AWS EC2 regions in your account
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
#!/usr/bin/env bash | |
for reg in `aws ec2 describe-regions --query 'Regions[].[RegionName]' --output=text`; do | |
echo $reg | |
# do something | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment