Skip to content

MichaelDimmitt/check-all-aws-regions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Just want to get a list of all my AWS resources

https://forums.aws.amazon.com/thread.jspa?threadID=235322

tldr:

Quickly run this thing!
bash <(curl -s https://raw.githubusercontent.com/MichaelDimmitt/check-all-aws-regions/master/regions.sh)

This looks more built out, but possibly more brittle:
https://github.com/devops-israel/aws-inventory

The script I wrote is very simple is in this repo and can be found here: https://github.com/MichaelDimmitt/check-all-aws-regions/blob/main/regions.sh

Check-all-aws-regions

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions

Setup:

You will need to generate a client secret from IAM admin:
https://console.aws.amazon.com/iam/home#/users/Administrator?section=security_credentials

{
brew install aws-cli;
aws configure # paste id and secret here.
}
# commands to build:
# cat ./regions.txt | command xargs -I {} echo "echo \"aws resourcegroupstaggingapi get-resources --region {}\$(aws resourcegroupstaggingapi get-resources --region {})\"" > regions.sh
# now cleanup files using vim files: `:%s/ctrl-v + ctrl m/ /; :%s/ctrl-v + ctrl m//;`

Check all of your regions:

bash regions.sh

Disclaimer:

In the amazon docs forum that spawned this repo thscheer mentioned:

The problem is, that neither
aws resourcegroupstaggingapi get-resources --region
or
aws configservice list-discovered-resources ---resource-type ##
will list all resources, like TargetGroups aso.
Is there really nothing, that returns ALL resources (in one region, account, aso.) ????

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages