How yogananth-r/aws-cloud-inventory works
AWS Cloud Inventory is a CloudShell-oriented CLI that collects regional EC2 instance and EBS volume inventory and writes both datasets to a formatted Excel workbook. The main workflow is CLI invocation → collectors → report sheets → saved workbook; AWS identity and service access are supplied through the Boto3 session helper. README capabilities and sampled source support this scope; no broader inventory stages are implemented in the available tree.
Main entry points: cli.py Export command · ec2.py EC2 collector · ebs.py EBS collector · excel.py Excel exporter
Components 10
CLI workflow
- Export command
cli.py - Defaults and report path
config.py
Inventory collection
- EC2 collector
collectors/ec2.py - EBS collector
collectors/ebs.py - Name tag helper
utils/tags.py
Excel reporting
- Excel exporter
exporter/excel.py
AWS access
- AWS session
utils/session.py
Other components
- CloudShell user
- AWS EC2 API
- XLSX report
Connections 13
- CloudShell user → Export command: runs
- Export command → Defaults and report path: reads defaults
- Export command → EC2 collector: collects EC2
- Export command → EBS collector: collects EBS
- Export command → Excel exporter: writes sheets
- EC2 collector → Name tag helper: gets name
- EC2 collector → AWS session: creates client
- EBS collector → AWS session: creates client
- AWS session → AWS EC2 API: creates EC2 client
- EC2 collector → AWS EC2 API: describes instances
- EBS collector → AWS EC2 API: describes volumes
- Excel exporter → Defaults and report path: reads report path
- Excel exporter → XLSX report: saves workbook