The tool to help you discover resources in the cloud environment
Alternatives To Cloudiscovery
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Aws Vault7,71715a month ago103March 20, 202350mitGo
A vault for securely storing and accessing AWS credentials in development environments
Aws Iam Authenticator2,047645 days ago52August 10, 202331apache-2.0Go
A tool to use AWS IAM credentials to authenticate to a Kubernetes cluster
Configure Aws Credentials2,030
3 days ago15mitTypeScript
Configure AWS credential environment variables for use in other GitHub Actions.
8 months ago2March 10, 2021105bsd-3-clauseGo
kube2iam provides different AWS IAM roles for pods running on Kubernetes
Ex_aws1,2142741407 days ago77August 15, 202348mitElixir
A flexible, easy to use set of clients AWS APIs for Elixir
8 months ago1July 07, 2021121apache-2.0Go
Integrate AWS IAM with Kubernetes
4 months ago57August 25, 202114apache-2.0Python
AWS Least Privilege for Distributed, High-Velocity Deployment
Aws Mfa915
87 months ago12April 30, 201847mitPython
Manage AWS MFA Security Credentials
Gimme Aws Creds87218 days ago30February 07, 202291apache-2.0Python
A CLI that utilizes Okta IdP via SAML to acquire temporary AWS credentials
Terraform Aws Iam675
19 days ago13apache-2.0HCL
Terraform module which creates IAM resources on AWS 🇺🇦
Alternatives To Cloudiscovery
Select To Compare

Alternative Project Comparisons


PyPI version Downloads codecov python version CircleCI Codacy Badge Hits-of-Code GitHub license

aws provider

Cloudiscovery helps you to analyze resources in your cloud (AWS/GCP/Azure/Alibaba/IBM) account. Now this tool only can check resources in AWS, but we are working to expand to other providers.

The tool consists of various commands to help you understand the cloud infrastructure.



Commands can generate diagrams. When modelling them, we try to follow the principle:

Graphical excellence is that which gives to the viewer the greatest number of ideas in the shortest time with the least ink in the smallest space.

Edward Tufte


The commands generate reports that can be used to further analyze resources.


  1. Run the cloudiscovery command with following options (if a region not pass, this script will try to get it from ~/.aws/credentials):

1.1 To detect AWS VPC resources (more on AWS VPC):

cloudiscovery aws-vpc [--vpc-id vpc-xxxxxxx] --region-name xx-xxxx-xxx [--profile-name profile] [--diagram [yes/no]] [--filter xxx] [--verbose]

1.2 To detect AWS policy resources (more on AWS Policy):

cloudiscovery aws-policy [--profile-name profile] [--diagram [yes/no]] [--filter xxx] [--verbose]

1.3 To detect AWS IoT resources (more on AWS IoT):

cloudiscovery aws-iot [--thing-name thing-xxxx] --region-name xx-xxxx-xxx [--profile-name profile] [--diagram [yes/no]] [--filter xxx] [--verbose]

1.4 To detect all AWS resources (more on AWS All):

cloudiscovery aws-all --region-name xx-xxxx-xxx [--profile-name profile] [--services xxx,xxx] [--filter xxx] [--verbose]

1.5 To check AWS limits per resource (more on AWS Limit):

cloudiscovery aws-limit --region-name xx-xxxx-xxx [--profile-name profile] [--services xxx,xxx] [--usage 0-100] [--verbose]

1.6 To run AWS security controls (experimental feature):

cloudiscovery aws-security --region-name xx-xxxx-xxx [--profile-name profile] [--commands x] [--verbose]
  1. For help use:
cloudiscovery [aws-vpc|aws-policy|aws-iot|aws-all|aws-limit] -h


Enabling verbose mode, it is possible to debug all calls to the providers endpoints and check possible problems.


It's possible to filter resources by tags and resource type. To filter, add an option --filter <VALUE>, where <VALUE> can be:

  1. Name=tags.costCenter;Value=20000 - to filter resources by a tag name costCenter and with value 20000.
  2. Name=type;Value=aws_lambda_function to only list lambda functions.

It's possible to pass multiple values, to be able to select a value from a set. Values are split by : sign. If a desired value has a : sign, wrap it in ' signs e.g. --filter="Name=tags.costCenter;Value=20000:'20001:1'.

It is possible to pass multiple filter options, just pass -f filter_1 -f filter_2. In that case, the tool will return resources that match either of the filters

Useful CF tags:

  1. aws:cloudformation:stack-name - Stack name
  2. aws:cloudformation:stack-id - Stack id
  3. aws:cloudformation:logical-id - Logical id defined in CF template

Requirements and Installation


This tool has been written in Python3+ and AWS-CLI and it works on Linux, Windows and Mac OS.

Make sure the latest version of AWS-CLI is installed on your workstation, and other components needed, with Python pip already installed:

pip install -U cloudiscovery

Once a while after installation, there can be some issues related with a cache from older version being used by a newer version. In that case, it's recommended to remove directory ./assets/.cache.

AWS Credentials

Make sure you have properly configured your AWS-CLI with a valid Access Key and Region:

aws configure

More on credentials configuration: Configuration basics

AWS Permissions

The configured credentials must be associated to a user or role with proper permissions to do all checks. If you want to use a role with narrowed set of permissions just to perform cloud discovery, use a role from the following the CF template maintained by our team.

To further increase security, you can add a block to check aws:MultiFactorAuthPresent condition in AssumeRolePolicyDocument. More on using IAM roles in the configuration file.

(Optional) If you want to be able to switch between multiple AWS credentials and settings, you can configure named profiles and later pass profile name when running the tool.


Cloudiscovery provides a CLI to easily perform desired actions.


Example of a diagram ( supported):

diagrams logo

Following resources are checked in VPC command:

  • Autoscaling Group
  • Classic/Network/Application Load Balancer
  • Client VPN Endpoints
  • CloudHSM
  • DocumentDB
  • Directory Service
  • EC2 Instance
  • ECS
  • EFS
  • ElastiCache
  • Elasticsearch
  • EKS
  • EMR
  • IAM Policy
  • Internet Gateway (IGW)
  • Lambda
  • Media Connect
  • Media Live
  • Media Store Policy
  • MSK
  • NACL
  • NAT Gateway
  • Neptune
  • QuickSight
  • RDS
  • REST Api Policy
  • Route Table
  • S3 Policy
  • Sagemaker Notebook
  • Sagemaker Training Job
  • Sagemaker Model
  • Security Group
  • SQS Queue Policy
  • Site-to-Site VPN Connections
  • Subnet
  • Synthetic Canary
  • VPC Peering
  • VPC Endpoint
  • VPN Customer Gateways
  • Virtual Private Gateways
  • Workspace

The subnets are aggregated to simplify the diagram and hide infrastructure redundancies. There can be two types of subnet aggregates:

  1. Private* ones with a route to Internet Gateway
  2. Public* ones without any route to IGW

If EC2 instances and ECS instances are part of an autoscaling group, those instances will be aggregated on a diagram.

More information: AWS WA, REL 2: How do you plan your network topology?

AWS Policy

Example of a diagram:

diagrams logo

Following resources are checked in Policy command:

  • AWS Principal that are able to assume roles
  • IAM Group
  • IAM Group to policy relationship
  • IAM Policy
  • IAM Role
  • IAM Role to policy relationship
  • IAM User
  • IAM User to group relationship
  • IAM User to policy relationship

Some roles can be aggregated to simplify the diagram. If a role is associated with a principal and is not attached to any named policy, will be aggregated.

More information: AWS WA, SEC 3: How do you manage permissions for people and machines?


Example of a diagram:

diagrams logo

Following resources are checked in IoT command:

  • IoT Billing Group
  • IoT Certificates
  • IoT Jobs
  • IoT Policies
  • IoT Thing
  • IoT Thing Type


A command to list ALL AWS resources.

Example of an HTML report:

diagrams logo

The command calls all AWS services (200+) and operations with name Describe, Get... and List... (500+).

The operations must be allowed to be called by permissions described in AWS Permissions.

Types of resources mostly cover Terraform types. It is possible to narrow down scope of the resources to ones related with a given service with parameter -s e.g. -s ec2,ecs,cloudfront,rds.

More information: AWS WA, COST 2: How do you govern usage?

AWS Limit

It's possible to check resources limits across various service in an account. This command implements over 60 limits checks.

Example of an HTML report:

diagrams logo

With --services value,value,value parameter, you can narrow down checks to just services that you want to check.

With --threshold 0-100 option, you can customize a minimum percentage threshold to start reporting a warning.

  • Services available
    • Acm
    • Amplify
    • Apigateway
    • Appmesh
    • Appsync
    • Autoscaling Plans
    • Batch
    • Chime
    • Code Artifact
    • Code Build
    • Code Commit
    • Code Deploy
    • Codeguru Reviewer
    • Codeguru Profiler
    • Cognito Federated Identities
    • Cloudformation
    • Cloud Map
    • CloudWatch Logs
    • Dynamodb
    • EBS
    • EC2
    • ECR
    • ECS
    • Elastic Inference
    • Elastic Filesystem
    • Elastic Beanstalk
    • Elastic Loadbalancing
    • Forecast
    • Fraud Detector
    • Gamelift
    • Glue
    • IAM
    • Inspector
    • Kendra
    • KMS
    • Media Connect
    • Media Live
    • Media Package
    • Metwork Manager
    • Polly
    • Qldb
    • Robomaker
    • Route53
    • Route53resolver
    • RDS
    • S3
    • SES
    • SNS
    • SWF
    • Transcribe
    • Translate
    • VPC

AWS has a default quota to all services. At the first time that an account is created, AWS apply this default quota to all services.
An administrator can ask to increase the quota value of a certain service via ticket. This command helps administrators detect those issues in advance.

More information: AWS WA, REL 1 How do you manage service limits?

AWS Security

This features is experimental, but now you can run commands to check and analyze some security issues. The following commands are available now:

  • Access key age
  • EBS Encryption enabled
  • EC2 IMDSV2 Check
  • DynamoDB PITR Enabled
  • Incoming SSH Disabled
  • Cloudtrail enabled

Regions outside of main partition

If you wish to analyze accounts in regions outside the main AWS partition (e.g. GovCloud or China), you should provide credentials (e.g. a profile) that are applicable to a given partition. It's not possible to analyze regions from multiple partitions.

Using a Docker container

To build docker container using Dockerfile

docker build -t cloudiscovery .

After build container, you must start container using follow command. The run command will mount a filesystem with your actual aws cli credentials, then you won't need configure aws cli again.

docker run \
-it \
--mount type=bind,source=$HOME/.aws/,target=/root/.aws/,readonly \
cloudiscovery \

  • If you are using Diagram output and due to fact container is a slim image of Python image, you must run cloudiscovery with "--diagram no", otherwise you'll have an error about "xdg-open". The output file will be saved in "assets/diagrams".


This project support English and Portuguese (Brazil) languages. To contribute with a translation, follow this steps:

  • Create a folder inside locales folder with prefix of new idiom with appropiate locale code. Copy "locales/messages.pot" to locales/newfolder/LC_MESSAGES/.
  • To build ".mo" file running this command from project root folder:
python -o locales/NEWFOLDER/LC_MESSAGES/ locales/NEWFOLDER/LC_MESSAGES/messages


If you have improvements or fixes, we would love to have your contributions. Please use PEP 8 code style.


When developing, it's recommended to use venv.

In order to create a venv on macOS and Linux:

python3 -m venv env

On Windows:

py -m venv venv
python -v venv venv

Once installed, you need to activate the virtual environment. Activation will put specific paths for python and pip commands. On macOS and Linux call:

source venv/bin/activate

On Windows:


Make sure you have installed pre-commit.

Install development requirements:

pip install -U -r requirements.txt -r requirements-dev.txt

Add precommit hooks:

pre-commit install

To run pre-commit hooks, you can issue the following command:

pre-commit run --all-files

Running cloudiscovery in development mode:

python cloudiscovery/ OPTIONS

To add new resources to check limit, please remove "assets/.cache/cache.db"

Making a release

  1. Update the version in cloudiscovery/ and create a new git tag with git tag $VERSION.
  2. Once you push the tag to GitHub with git push --tags, a new CircleCI build is triggered.

Similar projects and products

Popular Amazon Web Services Projects
Popular Role Projects
Popular Cloud Computing Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Devops Tools
Aws Cli
Aws Iot