Infrastructure Overview
The BYOC Cluster Health Agent runs on AWS with a cost-optimized architecture that auto-stops when idle and wakes on demand.
Core Components
| Component | Purpose |
|---|---|
| EC2 (t3.small) | Bastion host running the app in Docker |
| Lambda + API Gateway | Wake-up endpoint that starts EC2 if stopped |
| CloudFormation | Single-stack IaC for all resources |
| Elastic IP | Stable address across stop/start cycles |
| CloudWatch | CPU alarm triggers auto-stop after 30 min idle |
| Docker | App container (Python 3.11-slim + Streamlit) |
| Tailscale VPN | Secure tunnel to StarRocks via bastion host |
| GitHub Actions | CI/CD pipeline deploys on push to main |
Deployment Topology
Cost
The instance auto-stops after 30 minutes of idle CPU. At ~2 hours/day usage, monthly cost is approximately $1.20.
| Resource | Cost |
|---|---|
| EC2 t3.small (running hours only) | ~$0.02/hr |
| Elastic IP | Free (while instance exists) |
| Lambda + API Gateway | Free tier |
| CloudWatch alarm | Free tier |