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 pickle 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.pickle

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

aws_list_all-0.1.0-py2.py3-none-any.whl (11.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for aws_list_all-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d436dcb5ff4b94f10ea492501cc21dcaa321adba72ada0336cf4a3aa9be49f00
MD5 80746899c20cb2e8e0fccf07657724e6
BLAKE2b-256 a25ee7920c4c22f730b42667cab449097253ebf407588b13a0b99fa7ae54b020

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