A full-stack platform that transforms plain English into Terraform Infrastructure-as-Code, deploys it automatically to AWS, and provides a professional dashboard to track deployments, logs, metrics, and cloud resource activity.
This project combines:
- AI (OpenAI + LangChain)
- Cloud Automation (Terraform + AWS)
- Backend Microservices (FastAPI)
- Modern Frontend (React + Tailwind + Framer Motion)
- Database storage for logs + metrics (MongoDB / DynamoDB)
- Professional DevOps practices
Modern cloud deployments are complex, slow, and expert-dependent.
- Terraform code is tedious to write manually.
- AWS services (EC2, ECS, S3, IAM, CloudFront, RDS) require deep experience.
- DevOps pipelines are fragmented across multiple tools:
- Terraform CLI
- AWS Console
- CloudWatch
- Grafana
- CI/CD systems
- Tracking deployment logs and failures is difficult.
- New cloud engineers struggle with Infra-as-Code.
- No unified system that:
- Understands natural language instructions
- Generates infrastructure code
- Deploys it automatically
- Shows real-time status/metrics in one dashboard
Cloud automation lacks intelligence.
The platform introduces an AI-Powered Cloud Assistant that allows users to:
"Deploy a FastAPI service on ECS Fargate with an RDS Postgres database and S3 bucket."
- Generates Terraform using OpenAI + LangChain
- Creates infrastructure templates
- Executes Terraform (
init,plan,apply) - Deploys resources to AWS
- Stores deployment metadata + logs
- Displays monitoring dashboards
- Tracks metrics (success rate, average time, errors)
This creates a single intelligent platform replacing multiple DevOps tools.
AI generates Terraform for:
- EC2
- ECS Fargate
- S3 Bucket
- RDS Postgres
- IAM Roles & Policies
- VPC, Subnets, Gateways
- Load Balancers
- AutoScaling Groups
- CloudFront CDN
No need to manually write .tf files.
The backend:
- Runs Terraform programmatically
- Captures stdout/stderr logs
- Detects failures automatically
- Stores logs in DB or S3
- Streams status updates
The frontend provides:
- Clean Sidebar + Navbar
- Deployments Table
- Status badges (success/pending/failed)
- Metrics cards
- Animations (Framer Motion)
- Light theme (enterprise standard)
Each deployment includes:
- Terraform execution logs
- Timestamp history
- Resource summary
- Error messages and fixes
- Duration analytics
Tracks:
- Number of deployments
- Success rate
- Average deployment time
- Failures per service
- Cloud usage trends
- Home Page
- Deployments Page
- Deployment Details Page
- Metrics Dashboard
- AI Chat Interface
/ai/generateβ returns Terraform code/deployβ deploys Terraform to AWS/deploymentsβ list deployments/deployments/{id}β fetch logs & metadata/metricsβ returns aggregated metrics
- LangChain prompt engineering
- Token optimization
- Terraform schema builder
- Multi-agent reasoning (optional future)
- Terraform execution engine
- AWS provider configuration
- State management (local/S3)
- Log capture pipeline
- MongoDB or DynamoDB for deployments
- S3 for logs (optional)
- Audit history
Generate Terraform
{
"prompt": "Deploy an S3 bucket and EC2 instance"
}
Response:
{
"terraform_code": "<tf code>"
}
Triggers deployment
{
"terraform_code": "...",
"project_name": "my-app"
}
Response:
{
"deployment_id": "DPL-123",
"status": "initiated"
}
[
{
"id": "DPL-123",
"service": "ECS Fargate",
"status": "success",
"duration": "42s",
"date": "2025-02-05T14:22:01"
}
]
{
"id": "DPL-123",
"service": "ECS Fargate",
"status": "success",
"logs": [...],
"started_at": "...",
"finished_at": "...",
"duration": "42s"
}
{
"total_deployments": 12,
"success_rate": 83.3,
"avg_deploy_time": 38
}
- React (Vite)
- TailwindCSS
- Framer Motion
- Axios
- Lucide Icons
- FastAPI
- LangChain
- OpenAI API
- Python Terraform executor
- Python subprocess for logs
- MongoDB Atlas (best for logs + JSON) OR
- DynamoDB (AWS-native, serverless)
- Terraform
- AWS (ECS, EC2, RDS, S3, CloudFront)
- Docker
- GitHub Actions CI/CD
cd frontend
npm install
npm run dev
cd backend
pip install -r requirements.txt
uvicorn app.main:app --reload
- WebSockets for live terraform logs
- Multi-cloud support (GCP, Azure)
- Role-based Access (RBAC)
- GitHub repo auto-deploy engine
- Automatic rollback on failure
- AI-driven problem resolution
- Cost estimation intelligence
- Templates for 1-click deployments
This project demonstrates:
- System design thinking
- Cloud infrastructure knowledge
- AI application engineering
- Full-stack development
- DevOps automation
- API design
- Real-world deployment complexity