Post

List all resources in AWS

You can use the Tag Editor

  1. Go to AWS Console
  2. In the TOP Navigation Pane, click Resource Groups
  3. Click Tag Editor

Here we can select either a particular region in which we want to search or select all regions from the dropdown. Then we can select actual resources we want to search for or click on individual resources.

Export the list as a CSV file and import it into Excel or LibreOffice and create a “Pivot Table” from the available data.


Here, you need to enter the region name and configure AWS CLI before trying this.

1
aws resourcegroupstaggingapi get-resources --region region_name

It will list all the recourses in the region in the following format.

1
2
3
4
5
6
7
- ResourceARN: arn:aws:cloudformation:eu-west-1:123456789101:stack/auction-services-dev/*******************************
  Tags:
  - Key: STAGE
    Value: dev
- ResourceARN: arn:aws:cloudformation:eu-west-1:********************
Tags:
-- More  --

Alternative route

aws_list_all

List all resources in an AWS account, all regions, all services(*). Writes JSON files for further processing.

This post is licensed under CC BY 4.0 by the author.

Comments powered by Disqus.