A containerized enterprise platform, delivered as code.
Demand Chain AI is an Enterprise IT SaaS organization running containerized web applications for enterprise workloads. Ampity designed and delivered the production platform on Amazon ECS with AWS Fargate, with every resource provisioned through Terraform.
Results
Measure
Result
Before / target
Release time
5 to 7 min per release
Down from 30 to 45 minutes of manual deployment
Application availability
~99.9%
Target 99.5%; no deployment downtime since go-live
What had to change, and what success meant.
Downtime risk during failures and traffic spikes, affecting enterprise users
Manual infrastructure changes and inconsistent deployment practices
Non-standard network and access controls, raising security exposure
Limited room to scale with business growth
Goals and objectives
Run services across multiple Availability Zones behind a managed load balancer
Provision every environment from Terraform, repeatable and auditable
Release through automated CI/CD pipelines
Centralize logging, monitoring and alerting
Segment the network and apply least privilege
Adopt a container platform that scales with demand
Services chosen for the workload, and why.
Service
Why it was chosen
Amazon ECS on AWS Fargate
Runs the containers without servers to manage; services scale and heal behind the load balancer
Application Load Balancer
Spreads traffic across services and Availability Zones with health checks
Amazon VPC
Public and private subnets isolate the application tiers
Amazon RDS, Single-AZ
Managed database with automated backups; Single-AZ chosen for cost, as a documented trade-off
Amazon ECR
Image registry with scan on push and versioned image tags
Terraform and GitHub Actions
Every resource as code; builds, image pushes and ECS updates are automated
Alternatives considered
Alternative
Decision
Self-managed containers on Amazon EC2
Not chosen: capacity, patching and scaling would stay manual
Kubernetes orchestration
Not chosen: more operational complexity than the workload needed
Architecture diagram
Responsibility
Implementation
Entry
Amazon Route 53 to an Application Load Balancer across multiple Availability Zones
Compute
ECS tasks in private subnets across zones, scaled on demand and health metrics
Data
Amazon RDS, Single-AZ, with automated backups; an intentional cost trade-off
No on-premises or external infrastructure components
How a change reaches production, every time.
Step
Work
Pull request
terraform fmt and validate, peer review
Plan
Changed layers only, OIDC role per account
Apply on main
The saved, reviewed plan is applied
Verify
ALB health checks and CloudWatch; roll back to the previous task definition
Claude Code reads a layer, proposes a plan and edits on a branch after approval; engineers commit and push, the pipeline applies
Task definitions, IAM roles, networking and secrets validated before promotion; images scanned before ECR
Two pipelines, one security model.
Operated and secured to one standard.
Area
Controls
Account governance
Root user for setup tasks only, MFA enabled; corporate-owned account contacts; CloudTrail in all regions, logs in a protected S3 bucket
Identity security
Role assumption with temporary credentials; GitHub Actions uses an OIDC role per account; no AWS keys in GitHub; a dedicated task IAM role for every ECS service
Workload health KPIs
ECS running versus desired tasks; ALB requests, latency, 4xx and 5xx errors; task CPU and memory, RDS metrics in CloudWatch
Runbook
Day-to-day operations and incident response; steps mapped to each health KPI and alarm; rollback to the previous task definition and image
Network security
Internet traffic reaches only the ALB, over HTTPS; no direct access to services or the database; security groups limit traffic between ALB, services and database
Data encryption
TLS 1.2 or higher at the ALB, certificates from ACM; S3 buckets encrypted, versioned, public access blocked; RDS passwords managed and rotated by Secrets Manager
Measured results, against the baseline.
KPI
Baseline
Target
Result
Measurement source
Application deployment time
30 to 45 minutes, manual steps
Under 10 minutes
5 to 7 minutes per release
GitHub Actions run logs and ECS deployment events
Application availability
Frequent interruptions during deployments
99.5% or better
About 99.9%, no deployment downtime
CloudWatch, ALB target health, ECS service monitoring
Recovery targets
Component
RTO
RPO
ECS application services
~30 min
Near-zero
Application Load Balancer
<15 min
N/A
Amazon RDS, Single-AZ
1 to 2 hours
Last automated backup
ECR, CloudWatch, Secrets Manager
<30 min
N/A
Recommended from business impact and cost, and discussed with the customer during design.
Cost modelling and continuous improvement
Single-AZ RDS and right-sized ECS tasks chosen to balance cost and availability
Common tags on every resource; tag compliance checks add missing ownership and cost tags
Lesson
Improvement
Pipeline stabilization
Versioned task definitions, mandatory image tags, rollback and pre-deployment validation are now standard
Single-AZ database trade-off
Acceptable for this workload; availability trade-offs are documented and agreed with the customer