Skip to content

Instantly share code, notes, and snippets.

@AstroTom
Last active May 23, 2022 14:01
Show Gist options
  • Save AstroTom/390b9f60919781a4019efd40d014c9e5 to your computer and use it in GitHub Desktop.
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.
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
@AstroTom
Copy link
Author

see also aws-list-by-region.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment