Skip to main content

List all your AWS resources, all regions, all services.

Project description

List all resources in an AWS account, all regions, all services(*).

(*) No guarantees for completeness. Use billing alerts if you are worried about costs.

https://travis-ci.org/JohannesEbke/aws_list_all.svg?branch=master

Usage

You need to have python (both 2 or 3 work) with boto3 installed, as well as AWS credentials which can be picked up by boto3.

To list resources for a given service and region, do:

python -m aws_list_all query --service ec2 --region eu-west-1

Example output:

--> ec2 eu-west-1 DescribeVolumeStatus VolumeStatuses
--- ec2 eu-west-1 DescribeVpcPeeringConnections VpcPeeringConnections
--- ec2 eu-west-1 DescribeExportTasks ExportTasks
--- ec2 eu-west-1 DescribePlacementGroups PlacementGroups
--- ec2 eu-west-1 DescribeSnapshots Snapshots
--- ec2 eu-west-1 DescribeConversionTasks ConversionTasks
--> ec2 eu-west-1 DescribeInternetGateways InternetGateways
--- ec2 eu-west-1 DescribeBundleTasks BundleTasks
--> ec2 eu-west-1 DescribeNetworkAcls NetworkAcls
....

Lines start with “---” if no resources of this type have been found, and start with “-->” if at least one resource has been found.

Currently, some default resources are still considered “user-created”, this may change in the future.

Details about found resources are saved in json files named after the service, region, and operation used to find them. They can be dumped with:

python -m aws_list_all ec2_DescribeSecurityGroups_eu-west-1.json

Enough of this, how do I really list everything?

Restricting the region and service is optional, a simple query lists everything. It uses a thread pool to parallelize queries and randomizes the order to avoid hitting one endpoint in close succession. One run takes around two minutes for me.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_list_all-0.5.0.tar.gz (32.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_list_all-0.5.0-py2.py3-none-any.whl (18.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file aws_list_all-0.5.0.tar.gz.

File metadata

  • Download URL: aws_list_all-0.5.0.tar.gz
  • Upload date:
  • Size: 32.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2+

File hashes

Hashes for aws_list_all-0.5.0.tar.gz
Algorithm Hash digest
SHA256 7416f87aeb5bae66db301228ed74cd9af358e3e95acc01e9071b5ebe78b3152d
MD5 5fccc3f72ce13d3ceeaac3b2b0e9a642
BLAKE2b-256 f939d822484b5d3ef3667140c0b0c110cc5dd5bb62701f4ce65cca3e4c4a6895

See more details on using hashes here.

File details

Details for the file aws_list_all-0.5.0-py2.py3-none-any.whl.

File metadata

  • Download URL: aws_list_all-0.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2+

File hashes

Hashes for aws_list_all-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a2190f25a9bcac2441ccfcc2955de09073869691648898afcb8db7c86c1fc3ab
MD5 455cb0f165797badb7c627a195f3c558
BLAKE2b-256 1b2b7c33ca45521e6f627c5ffa7c396bf6bd2d58092d880d8cab9014b4f55a65

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page