How do we list all the resources in AWS for all regions

+2 votes
Is there a way to see all the resources used by an account in all the regions at once. This would be very helpful to know which resource should be released later
Jul 18, 2018 in Cloud Computing by brat_1
• 7,200 points
14,824 views

3 answers to this question.

+1 vote

Every region is independent of the other, So to know all the resources, we would have create API calls for every resource in every region which is not advisable to do.

But to know all the resources we could activate AWS Config which shows how resources are related to each other for your account and how are they configured. Learn more about the resources and the framework from the AWS Solutions Architect Course.

Keep Learning :)

answered Jul 18, 2018 by Gopalan
• 1,360 points
0 votes

No, 
There is no way to get all resources within your account in one go. Each region is independent and for some services like IAM concept of a region does not exist at all. Although there are API calls available to list down resources and services.
For example:

  • To get list of all available regions for your account:
    output, err := client.DescribeRegions(&ec2.DescribeRegionsInput{})
    
    
  • To get list of IAM users, roles or group you can use:

    client.GetAccountAuthorizationDetails(&iam.GetAccountAuthorizationDetailsInput{})

    You can find more detail about API calls and their use at: https://docs.aws.amazon.com/sdk-for-go/api/service/iam/

    Above link is only for IAM. Similarly, you can find API for all other resources and services.

answered Aug 30, 2018 by eatcodesleeprepeat
• 4,710 points
+3 votes

Yes.

I had the same issue, trying to figure out what exactly is going on in my AWS account.

Eventually, I ended up writing AWSRetriver, a desktop tool to list AWS resources on all regions.

It is a simple and straight-forward tool that lists (almost) everything... (hopefully)

answered Feb 25, 2019 by anonymous
Great work there @dtylman.
Where is the awsretriver.exe in the whole file set?
Download this: https://github.com/dtylman/AWSRetriever/releases/download/rc3/AWSRetriever_0_1_0_14.zip

Extract to some folder, the exe is inside.
Freaking awesome, man. Thank you - I just cleaned up so much crud in my "clean" AWS account!
Hey @Andrew, Thanks for your contribution.

Do upvote the answer in case you found it useful.

Cheers!

Related Questions In Cloud Computing

0 votes
1 answer

How do I create or build an AMI in AWS?

Building of an AMI can be initiated ...READ MORE

answered Jul 16, 2018 in Cloud Computing by brat_1
• 7,200 points
431 views
0 votes
1 answer

How do you implement service discovery in AWS?

For an Amazon EC2 hosted service a ...READ MORE

answered Jul 27, 2018 in Cloud Computing by code_ninja
• 6,290 points
666 views
0 votes
1 answer
+4 votes
2 answers

Amazon S3 Permission problem - How to set permissions for all files at once?

This can be done by setting the ...READ MORE

answered Mar 27, 2018 in Cloud Computing by brat_1
• 7,200 points
3,430 views
+4 votes
5 answers

How to do parallel uploads to the same s3 bucket directory with s3cmd?

Is your problem is not with the ...READ MORE

answered Oct 11, 2018 in Cloud Computing by findingbugs
• 4,780 points
4,068 views
+3 votes
6 answers

Are the S3 buckets in AWS, Region Specific?

Yes S3 buckets are region specific. When you ...READ MORE

answered Oct 16, 2018 in Cloud Computing by Rijo
27,894 views
0 votes
1 answer
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP