How vivek01-ops/cloudcostlens works
CloudCostLens is an AWS cost-intelligence platform, but the README identifies this checkout as Milestone 1: discovery is implemented, while billing, metrics, analysis, and execution workers are stubs or later milestones. The main workflow shown is user-facing dashboard → API, alongside a separate worker-driven AWS discovery flow that records inventory and scan evidence. Cost, recommendation, approval, and action concepts are represented in the domain models and dashboard, but their processing is not implemented here. Relationships below are limited to README statements and source-index references; several web and domain details were not sampled.
Main entry points: discovery.py Scan orchestration · main.py FastAPI application · cloud.py Cloud inventory models · layout.tsx Web dashboard
Components 25
Dashboard
- Web dashboard
apps/web/app/(app)/layout.tsx - Overview
apps/web/app/(app)/overview/page.tsx - Resource inventory
apps/web/app/(app)/resources/page.tsx - Resource detail
apps/web/app/(app)/resources/[id]/page.tsx - Cost explorer
apps/web/app/(app)/cost-explorer/page.tsx - Recommendations
apps/web/app/(app)/recommendations/page.tsx - Approvals
apps/web/app/(app)/approvals/page.tsx - Activity
apps/web/app/(app)/activity/page.tsx - Settings
apps/web/app/(app)/settings/page.tsx
API
- FastAPI application
apps/api/main.py - Metadata endpoint
apps/api/routers/meta.py - Health endpoint
apps/api/routers/health.py
Discovery
- Worker dispatcher
workers/cli.py - Discovery worker
workers/discovery.py - Scan orchestration
core/services/discovery.py - AWS client factory
core/aws/session.py - EC2 discovery adapter
core/aws/ec2.py - Inventory ingestion
core/services/ingestion.py - Later-stage workers
workers/cli.py
Domain state
- Cloud inventory models
core/models/cloud.py - Optimization models
core/models/optimization.py - Approval and action models
core/models/workflow.py - Audit events
core/audit.py
Other components
- Cloud operator
- AWS
Connections 19
- Cloud operator → Web dashboard: uses
README.md - Web dashboard → FastAPI application: HTTP requests
README.md - FastAPI application → Metadata endpoint: registers
apps/api/main.py - FastAPI application → Health endpoint: registers
apps/api/main.py - Worker dispatcher → Discovery worker: dispatches
workers/cli.py - Discovery worker → Scan orchestration: runs scans
workers/discovery.py - Scan orchestration → AWS client factory: builds clients
core/services/discovery.py - Scan orchestration → EC2 discovery adapter: discovers resources
core/services/discovery.py - AWS client factory → AWS: connects to
README.md - EC2 discovery adapter → AWS: reads inventory
README.md - Scan orchestration → Inventory ingestion: ingests results
core/services/discovery.py - Inventory ingestion → Cloud inventory models: upserts resources
core/services/ingestion.py - Scan orchestration → Cloud inventory models: records scans
core/services/discovery.py - Scan orchestration → Audit events: records events
core/services/discovery.py - Later-stage workers → Worker dispatcher: dispatched by
workers/cli.py - Cost explorer → Cloud inventory models: displays cost data
README.md - Recommendations → Optimization models: presents findings
README.md - Approvals → Approval and action models: presents approvals
README.md - Activity → Audit events: presents activity
README.md