Last active
May 23, 2022 14:01
-
-
Save AstroTom/390b9f60919781a4019efd40d014c9e5 to your computer and use it in GitHub Desktop.
AWS describe resources per regions, or more generally run AWS command in all regions. Based on Script from Avi K.
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
CMD="eks list-clusters" | |
CMD="ec2 describe-volumes" | |
for item in $(aws ec2 describe-regions --output text | awk {'print $4'}) | |
do | |
echo $item && aws --region $item $CMD | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see also
aws-list-by-region.sh