Created
February 14, 2020 18:31
-
-
Save timvw/65fdc3410acf3297d79d40b1094287e4 to your computer and use it in GitHub Desktop.
get-resources-in-all-regions.sh
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 describe-regions | \ | |
jq -r '.Regions[] | .RegionName' | \ | |
xargs -l aws resourcegroupstaggingapi get-resources --region | \ | |
jq '.ResourceTagMappingList[] | .ResourceARN' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment