Git Product home page Git Product logo

aws_list_all's Introduction

aws_list_all

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.

aws_list_all's People

Contributors

johannesebke avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.