Skip to main content

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

ComponentPurpose
EC2 (t3.small)Bastion host running the app in Docker
Lambda + API GatewayWake-up endpoint that starts EC2 if stopped
CloudFormationSingle-stack IaC for all resources
Elastic IPStable address across stop/start cycles
CloudWatchCPU alarm triggers auto-stop after 30 min idle
DockerApp container (Python 3.11-slim + Streamlit)
Tailscale VPNSecure tunnel to StarRocks via bastion host
GitHub ActionsCI/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.

ResourceCost
EC2 t3.small (running hours only)~$0.02/hr
Elastic IPFree (while instance exists)
Lambda + API GatewayFree tier
CloudWatch alarmFree tier