Platform engineering for a multi-product group
A self-hosted deploy platform on AWS that AI agents can use
By Vishal Nigam ·
- workers autoscale on CPU
- 1→6workers autoscale on CPU
- independent infrastructure state layers
- 7independent infrastructure state layers
- CloudWatch alarms, plus daily backups
- 8CloudWatch alarms, plus daily backups
Results
- Every site and service ships through one portal, from a landing page to a full product
- AI agents deploy through an API, with domains, certificates and scaling handled
- If the control plane goes down, deploys pause but every site keeps serving
- Backups and alarms existed from the first day
AI agents ship code many times a day, so they need one predictable place to deploy. We built a self-hosted deploy platform on our own AWS account, defined as code, with autoscaling workers, managed Postgres, backups and alarms, and an API every agent deploys through.
The problem
A group with many products, landing pages and domains had deployments scattered across separate servers and clouds. Every product had its own way to ship.
Agents need the opposite: one API-driven place to deploy, with certificates, domains and scaling handled for them.
What we built
- Infrastructure as code in independent layers: state and locking, the network across availability zones, data (encryption keys, managed Postgres, secrets, registry, backups), the control plane, ingress, autoscaling workers, and operations (alarms, backups, monitoring).
- A request path of load balancer, router, container. The control plane is deliberately not in it.
- Three layers of scaling: the load balancer, worker capacity that joins the cluster automatically and drains on scale-in, and app replicas.
- Operator access through AWS Session Manager. No SSH keys and no bastion.
How it works
- One wildcard certificate at the load balancer, so a new site needs no certificate step.
- Auto-recovery for the control plane instead of an autoscaling group, so it keeps its identity, disk and address.
- Images built in CI and pulled from a registry, because the workers run a different CPU architecture.
- Separate state per layer, so a mistake in one cannot destroy another.
- Infrastructure tests written like app tests: write the check, watch it fail, apply, watch it pass.
- Nothing stateful on autoscaled workers, because a scale-in can remove them.
Results
- One portal for every product and landing page in the group.
- Agents create projects, apps, sources and domains and deploy through the API.
- Horizontal scaling is a variable change, not a re-architecture.
What you could get
Your own internal deployment platform on your AWS account: defined as code, autoscaling, gated by single sign-on, API-driven so AI agents can ship safely, with backups and alarms from day one.
Questions owners ask
- How do AI coding agents deploy software safely?
- Give them one predictable platform with an API: create the project, app, source and domain, then deploy. Certificates, scaling and backups are handled by the platform, and the control plane sits outside the request path so a failure there never takes sites down.