How aditya160803/cloud-chat-v2 works
Cloud-Chat V2 is a Streamlit application for translating plain-English AWS infrastructure requests into reviewed, deployable Terraform plans. Users enter requirements, the application interprets and plans them, generates and checks Terraform, requests approval, then deploys and independently verifies resources; deployment history is stored in SQLite. The graph preserves the documented AI-provider, security, cost, AWS-authentication, and history capabilities. Some subsystem links are based on README workflow statements because their implementation was not sampled; those edges cite the README.
Main entry points: app.py Streamlit entry point · repository.py Deployment repository · infrastructure_planner.py Infrastructure planner · deployment_service.py Deployment service
Components 25
User experience
- Streamlit entry point
app.py - Request chat
ui/chat_view.py - Infrastructure builder
ui/infrastructure_builder.py - Plan review
ui/plan_review_view.py - Deployment controls
ui/deployment_progress_view.py - Deployment history
ui/history_view.py - Resource verification UI
ui/resources_view.py - Saved plans
ui/saved_plans_view.py
Interpretation and planning
- AI request parser
services/ai_parser.py - Infrastructure planner
services/infrastructure_planner.py - Dependency resolver
services/dependency_resolver.py - AMI resolver
services/ami_resolver.py - Cost estimator
services/cost_estimator.py
Deployment and verification
- Terraform pipeline
services/terraform_service.py - Security scanner
services/security_scanner.py - Deployment service
services/deployment_service.py - AWS verification
services/aws_verification_service.py
State and shared services
- AWS authentication
services/aws_auth_service.py - Region selection
services/region_service.py - Deployment repository
database/repository.py - SQLite database
database/db.py - Domain models
core/models.py - Application settings
config.py - Domain exceptions
core/exceptions.py
Other components
- Infrastructure user
Connections 34
- Infrastructure user → Streamlit entry point: uses
README.md - Streamlit entry point → Request chat: routes to
app.py - Streamlit entry point → Infrastructure builder: routes to
app.py - Streamlit entry point → Plan review: routes to
app.py - Streamlit entry point → Deployment controls: routes to
app.py - Streamlit entry point → Deployment history: routes to
app.py - Streamlit entry point → Resource verification UI: routes to
app.py - Streamlit entry point → Saved plans: routes to
app.py - Request chat → AI request parser: calls
ui/chat_view.py - AI request parser → Infrastructure planner: informs plan
README.md - Infrastructure planner → Dependency resolver: resolves
services/infrastructure_planner.py - Infrastructure planner → AMI resolver: resolves
services/infrastructure_planner.py - Infrastructure planner → Cost estimator: estimates
services/infrastructure_planner.py - Plan review → Terraform pipeline: requests plan
ui/plan_review_view.py - Plan review → Deployment repository: checks record
ui/plan_review_view.py - Terraform pipeline → Security scanner: scans configuration
services/terraform_service.py - Deployment controls → Deployment service: starts deployment
ui/deployment_progress_view.py - Deployment service → Terraform pipeline: executes Terraform
services/deployment_service.py - Deployment service → AWS verification: verifies resources
services/deployment_service.py - Deployment history → AWS verification: requests verification
ui/history_view.py - Resource verification UI → Deployment repository: reads resources
ui/resources_view.py - AWS verification → Deployment repository: records results
services/aws_verification_service.py - Deployment service → AWS authentication: authenticates
services/deployment_service.py - Terraform pipeline → AWS authentication: uses credentials
services/terraform_service.py - Infrastructure planner → Region selection: selects region
services/infrastructure_planner.py - AI request parser → Region selection: uses region
services/ai_parser.py - Deployment repository → SQLite database: reads and writes
database/repository.py - Deployment repository → Domain models: maps records
database/repository.py - Deployment repository → Domain exceptions: raises
database/repository.py - SQLite database → Application settings: loads path
database/db.py - AWS authentication → Application settings: reads settings
services/aws_auth_service.py - AWS verification → AWS authentication: uses identity
services/aws_verification_service.py - Deployment service → Deployment repository: updates records
services/deployment_service.py - Terraform pipeline → Deployment repository: updates plan
services/terraform_service.py