GitHubスライド | slidict.io

メッセージを読み込み中

aws-resource-count

  • ユーザー:
  • 最終更新: 2025/07/07
  • 読み取り時間: 01:08

Provides a tool to estimate the count of resources in an aws account. The tool uses AWS resource explorer to create a view of the resources in an account and then counts the number of resources by type. The view is deleted after the count is complete.

Prerequisites

Installation From Source

Clone the repository and change directory

git clone https://github.com/gofireflyio/aws-resource-count.git
cd aws-resource-count

Setup a virtual environment

virtualenv venv

Activate the virtual environment

source venv/bin/activate

Install the package

pip3 install aws-resource-count

Usage

Pass the list of aws profiles to scan as arguments to the command:

aws-resource-count prod-acount stage-account dev-account

Optionally pass a local file path to write the output to:

aws-resource-count prod-acount stage-account dev-account --output_file /tmp/output.json

Output is JSON formatted with count by type and total sum e.g

{
  "resource_types": {
    "cloudformation:stack": 6,
    "cloudtrail:trail": 1,
    "ec2:dhcp-options": 26,
    "ec2:instance": 3,
    "elasticache:user": 26,
    "iam:instance-profile": 1,
    "iam:mfa": 3,
    "iam:policy": 2
  },
  "total_assets": 68
}
著者:
Firefly

Cloud Infrastructure Automation Platform

Access

0 回

シンプルでエレガントなプレゼン。slidict.io - プロフェッショナルなスライド作成を実現

プレゼンを変革する。ログインしてslidict.ioを体験しよう!