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.3.0.tar.gz (12.7 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.3.0-py2.py3-none-any.whl (14.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: aws_list_all-0.3.0.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.7rc1

File hashes

Hashes for aws_list_all-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b2ddcfd8c5a908ed73ac3538daa5463d268c81407bce5afcef1a3c8b27e2063b
MD5 5160ac3f5d7e29fa91d98cdba36d1f1c
BLAKE2b-256 8cef63e9c3e83553ad950f100ea1d44e622867a7d238ee89a7c773bdbcc9f5ab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aws_list_all-0.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.7rc1

File hashes

Hashes for aws_list_all-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0a71aa2519f1a8e44d1091d064c3bf648ffb2bcb1b951decdf8038c515aca17f
MD5 eff6e74889d1f492693270a94deafe6a
BLAKE2b-256 f1a705b7408ce0ca0baf00b3fb09e5b2a95547b05a6c2f931a56d9edf6285872

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