Tech Terms Explained Open in the app →

Amazon ECS

Cloud Computing · Advanced · 4 min read

What is it?

Amazon ECS is AWS's container orchestration service that runs and manages Docker containers without you operating a Kubernetes cluster.

Explain like I'm 5

ECS is like a simpler, AWS-built manager for your containers: you tell it what to run and how many, and it places and restarts them for you.

Why was it created?

Teams wanted to run containers at scale on AWS without the complexity of managing Kubernetes themselves. ECS was created as an AWS-native, simpler orchestrator.

Where is it used?

  • Running containers on AWS
  • Microservices
  • Batch jobs
  • AWS-native deployments

Why should developers care?

ECS is a common way to run containers on AWS, so cloud engineers should know how it compares to Kubernetes (EKS).

How does it work?

You define tasks (one or more containers) and services (how many copies to keep running). ECS schedules them onto compute — either EC2 instances you manage or serverless Fargate — and restarts failed tasks, integrating tightly with other AWS services.

Real-world example

A team runs its API as an ECS service set to keep five tasks running on Fargate, with ECS replacing any that crash and scaling with load.

Common use cases

  • Container orchestration on AWS
  • Microservices and APIs
  • Scheduled and batch jobs
  • Serverless containers with Fargate

Advantages

  • Simpler than Kubernetes
  • Deep AWS integration
  • Runs on EC2 or serverless Fargate
  • Managed scheduling and recovery

Disadvantages

  • AWS-specific (lock-in)
  • Less portable than Kubernetes
  • Smaller ecosystem than K8s
  • Advanced needs may outgrow it

When should you use it?

When you want to run containers on AWS with less complexity than Kubernetes.

When should you avoid it?

When you need Kubernetes portability or its broader ecosystem (use EKS).

Alternatives

Amazon EKS (Kubernetes)Self-managed KubernetesAWS Lambda (for event-driven)

Related terms

Amazon EKSKubernetesContainerDockerAmazon ECR

Interview questions

Beginner

  • What is Amazon ECS?
  • What does it manage?

Intermediate

  • What is a task versus a service in ECS?
  • What is Fargate?

Senior

  • When would you pick ECS over EKS?
  • What are the lock-in trade-offs of ECS?

Common misconceptions

  • "ECS is AWS's version of Kubernetes" — that's EKS; ECS is a separate, simpler AWS-native orchestrator.
  • "ECS always needs servers" — with Fargate you run containers without managing servers.

Fun facts

  • ECS stands for Elastic Container Service.
  • It can run containers serverlessly via Fargate, with no EC2 instances to manage.

Timeline

  • 2015 — Amazon ECS becomes generally available

Learning resources

Quick summary

Amazon ECS is AWS's native container orchestrator that runs and manages Docker containers — simpler than Kubernetes and deeply integrated with AWS.

Cheat sheet

  • AWS-native container orchestration
  • Tasks + services
  • Runs on EC2 or serverless Fargate
  • Simpler than EKS, but AWS-specific

If you remember only one thing

ECS runs and manages your containers on AWS with less complexity than Kubernetes — at the cost of AWS lock-in.