Backend Deployment – ECS Fargate

This section walks through deploying the LiveCap FastAPI backend as a containerized service on Amazon ECS Fargate. By the end, you will have a running backend that responds to health checks and is reachable from the Application Load Balancer.

What You Will Deploy

ComponentTechnologyWhere
Container imageDocker / FastAPIAmazon ECR
Container runtimeECS FargatePrivate subnet, no public IP
Load balancerApplication Load BalancerPublic subnets, two AZs
Service registryECS Service livecap-target-service-devScale-to-zero: 0 ↔ 1, Lambda wake, idle scale-down after 300 s
NetworkCustom VPC 10.20.0.0/16ap-southeast-1

The current live cluster is livecap-cluster-dev:

ECS cluster list showing livecap-cluster-dev with 1 running task