One ECS, Three Engines: EC2, Fargate, and Managed Instances
· 11 min read
At the end of the last post, I left you with the question ECS keeps asking that Lambda never did.
Whose server is this?
That question has exactly three answers. AWS calls them EC2, Fargate, and — the new kid — Managed Instances. Picking between them feels like the first real fork in your ECS journey, the one where you're sure you'll choose wrong and regret it for eighteen months.
Here's the reassuring part: it's less of a fork than it looks. All three run the exact same container. Same task definition, same image, same application code. The only thing that changes is who owns and babysits the box your container lands on. Get that one idea and the rest is just trade-offs.