How aditya160803/cloud-project works
Cloud-Chat is a human-approved AWS infrastructure provisioning assistant: a request is parsed into validated intent, checked for security and cost, synthesized as Terraform, and held for checksum-bound approval before any guarded apply. The API and orchestrator coordinate planning, persistence, deployment, verification, and recovery; Streamlit provides the operator interface. README and excerpts support the main workflow and safety capabilities. Some orchestration internals and frontend/API wiring were not excerpted, so those links are limited to documented or indexed references.
Main entry points: orchestrator.py Plan orchestrator · main.py FastAPI endpoints · llm_parser.py Intent parser · terraform_runner.py Terraform runner
Components 20
Operator interface
- Streamlit UI
frontend/app.py - REST client
frontend/api_client.py
API and orchestration
- FastAPI endpoints
app/main.py - Plan orchestrator
app/orchestrator.py - Runtime settings
app/config.py
Intent and analysis
- Intent validation
app/schemas/intent.py - Intent parser
app/modules/llm_parser.py - Plan shaping
app/modules/planner.py - Security audit
app/modules/security.py - Cost estimate
app/modules/cost_estimator.py - Plan models
app/schemas/plan.py
Terraform lifecycle
- Terraform generation
app/modules/terraform_generator.py - Terraform runner
app/modules/terraform_runner.py - Deployment models
app/schemas/deployment.py
Audit and verification
- SQLite audit store
app/modules/storage.py - Secret redaction
app/modules/redaction.py - AWS verification
app/modules/aws_verifier.py
Other components
- Operator
- Gemini / Groq
- AWS APIs
Connections 21
- Operator → Streamlit UI: requests provisioning
README.md - Streamlit UI → REST client: uses REST client
README.md - REST client → FastAPI endpoints: sends JSON
README.md - FastAPI endpoints → Plan orchestrator: delegates planning
app/main.py - Plan orchestrator → Intent parser: parses intent
app/orchestrator.py - Intent parser → Gemini / Groq: requests extraction
README.md - Intent parser → Intent validation: validates intent
app/modules/llm_parser.py - Plan orchestrator → Plan shaping: shapes plan
app/orchestrator.py - Plan orchestrator → Security audit: audits security
app/orchestrator.py - Plan orchestrator → Cost estimate: estimates cost
app/orchestrator.py - Plan orchestrator → Terraform generation: generates Terraform
app/orchestrator.py - Plan orchestrator → Terraform runner: validates plan
app/orchestrator.py - Terraform runner → Plan models: records plan data
app/modules/terraform_runner.py - Plan orchestrator → SQLite audit store: persists plans
app/orchestrator.py - Terraform runner → SQLite audit store: stores lifecycle data
app/modules/terraform_runner.py - FastAPI endpoints → Deployment models: accepts deployment data
app/main.py - Plan orchestrator → AWS verification: requests verification
app/orchestrator.py - AWS verification → AWS APIs: checks resources
README.md - FastAPI endpoints → Secret redaction: sanitizes responses
app/main.py - Plan orchestrator → Secret redaction: sanitizes diagnostics
app/orchestrator.py - Plan orchestrator → Runtime settings: reads settings
app/orchestrator.py