Terraform-managed AWS infrastructure for Operation Code.
ECS cluster running containerized services on EC2 spot instances, fronted by an Application Load Balancer.
- Python Backend (prod/staging) -
backend.operationcode.org,api.operationcode.org - Pybot (prod) - Slack integration bot at
pybot.operationcode.org
- Region: us-east-2
- Compute: ECS with Fargate + spot instances
- Routing: ALB with host-based routing
- Logs: CloudWatch (7-day retention)
- State: S3 backend
terraform/
βββ ecs.tf # ECS cluster config
βββ apps.tf # Service definitions
βββ alb.tf # Load balancer
βββ asg.tf # Auto-scaling groups
βββ python_backend/ # Backend service module
βββ pybot/ # Pybot service module
Operation Code Infra is under the MIT License.