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(*). Writes JSON files for further processing.

(*) 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) as well as AWS credentials set up as usual.

Quick Start with virtualenv:

mkvirtualenv -p $(which python3) aws
pip install aws-list-all
aws-list-all query --region eu-west-1 --service ec2 --directory ./data/

Quick Start Output:

---------------8<--(snip)--8<-------------------
--- ec2 eu-west-1 DescribeVolumes Volumes
--- ec2 eu-west-1 DescribeVolumesModifications VolumesModifications
--- ec2 eu-west-1 DescribeVpcEndpointConnectionNotifications ConnectionNotificationSet
--- ec2 eu-west-1 DescribeVpcEndpointConnections VpcEndpointConnections
--- ec2 eu-west-1 DescribeVpcEndpointServiceConfigurations ServiceConfigurations
--- ec2 eu-west-1 DescribeVpcEndpoints VpcEndpoints
--- ec2 eu-west-1 DescribeVpcPeeringConnections VpcPeeringConnections
--- ec2 eu-west-1 DescribeVpcs Vpcs
--- ec2 eu-west-1 DescribeVpnConnections VpnConnections
--- ec2 eu-west-1 DescribeVpnGateways VpnGateways
+++ ec2 eu-west-1 DescribeKeyPairs KeyPairs
+++ ec2 eu-west-1 DescribeSecurityGroups SecurityGroups
+++ ec2 eu-west-1 DescribeTags Tags
!!! ec2 eu-west-1 DescribeClientVpnEndpoints ClientError('An error occurred (InternalError) when calling the DescribeClientVpnEndpoints operation (reached max retries: 4): An internal error has occurred')

Lines start with “---” if no resources of this type have been found, and start with “+++” if at least one resource has been found. “>:|” denotes an error due to missing permissions, other errors are prefixed with “!!!”,

Currently, some default resources are still considered “user-created” and thus listed, 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:

aws-list-all show data/ec2_*
aws-list-all show --verbose data/ec2_DescribeSecurityGroups_eu-west-1.json

How do I really list everything?

Warning: As AWS has over 1024 API endpoints, you may have to increase your allowed number of open files See https://github.com/JohannesEbke/aws_list_all/issues/6

Restricting the region and service is optional, a simple query without arguments 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.

More Examples

Add immediate, more verbose output to a query with --verbose. Use twice for even more verbosity:

aws-list-all query --region eu-west-1 --service ec2 --operation DescribeVpcs --directory data --verbose

Show resources for all returned queries:

aws-list-all show --verbose data/*

Show resources for all ec2 returned queries:

aws-list-all show --verbose data/ec2*

List available services to query:

aws-list-all introspect list-services

List available operations for a given service, do:

aws-list-all introspect list-operations --service ec2

List all resources in sequence to avoid throttling:

aws-list-all query --parallel 1

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.7.0.tar.gz (37.4 kB view details)

Uploaded Source

Built Distributions

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

aws_list_all-0.7.0-py3.7.egg (42.1 kB view details)

Uploaded Egg

aws_list_all-0.7.0-py2.py3-none-any.whl (20.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: aws_list_all-0.7.0.tar.gz
  • Upload date:
  • Size: 37.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for aws_list_all-0.7.0.tar.gz
Algorithm Hash digest
SHA256 7d37e54d860a0a4bda8eacaf4084f6a4c38b1b3a41c72dcd325aeeb5444c40fd
MD5 fcddef287f0bbcf83b28c9d4037dc5f2
BLAKE2b-256 0ffd2b6a1b2b1b99f341e49a794ec396461fbdc5be3356cc2f0490474a0f9217

See more details on using hashes here.

File details

Details for the file aws_list_all-0.7.0-py3.7.egg.

File metadata

  • Download URL: aws_list_all-0.7.0-py3.7.egg
  • Upload date:
  • Size: 42.1 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for aws_list_all-0.7.0-py3.7.egg
Algorithm Hash digest
SHA256 3b9a24cbc33291457de4cf0fb5e40de609f1238b05817ccce9a6556248d6b0bc
MD5 49c456d94679e26639ec4db5e2280e79
BLAKE2b-256 ca7dd077f6d36f39513c2f7cc6f1fbdb45f6a7e152250977bbc2bc927fac2b8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aws_list_all-0.7.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 20.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for aws_list_all-0.7.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f18592856c52f470c45770f5e93d943c107b6e268fa0a20f37b8d3221c4cf09a
MD5 db1d3931593a80fd6033fde489911c5e
BLAKE2b-256 e1239dc05597efbfb592e0f85a5cf058c94950dc61c1430dfaefb0bfcded7b9e

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