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

+1 vote
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,080 points
1,251 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.

Keep Learning :)
answered Jul 18, 2018 by Gopalan
• 1,260 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,670 points
+2 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 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.

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,080 points
21 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,220 points
58 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,080 points
52 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,750 points
417 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
1,270 views
0 votes
1 answer
0 votes
1 answer