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
15,526 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
801 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,300 points
925 views
0 votes
1 answer
0 votes
1 answer
0 votes
0 answers

How do you scale applications in the cloud?

Imagine you're developing an application, and it ...READ MORE

5 days ago in Cloud Computing by Priyanka
• 4,080 points
22 views
0 votes
0 answers

How do you manage large-scale data analytics in the cloud?

How are you setting up a cloud-based ...READ MORE

2 days ago in Cloud Computing by Priyanka
• 4,080 points
15 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