AWS in 1 Min · Episode 85

AWS Fargate explained: serverless containers

Serverless containers. Watch the one-minute video, then read the details.

David Gomez1:22 video · 3 min read

"Containers mean managing servers." Not with AWS Fargate. The servers still exist, but AWS provisions, patches and scales them, and you never see them. You describe the container and its size; Fargate runs it.

What Fargate is

AWS Fargate is a serverless, pay-as-you-go compute engine for containers. It isn't a separate orchestrator: it's a place to run containers for Amazon ECS and Amazon EKS (AWS's Kubernetes service). In ECS you pick Fargate as the capacity for a task or service; in EKS you use Fargate profiles to run pods on it.

What disappears from your to-do list:

  • Choosing instance types and how many servers to run.
  • Patching the host operating system.
  • Packing containers onto servers so none sit half empty.

Each Fargate task gets its own isolation boundary: it doesn't share a kernel, CPU, memory or network interface with other tasks. New tasks always start on the latest patched platform revision; when AWS needs to patch, it can retire running tasks, so design them to be replaceable.

Sizes and billing

You set CPU and memory at the task level, from a choice of fixed combinations. Linux tasks range from 0.25 vCPU with 512 MiB up to 32 vCPU with up to 244 GB of memory (the 32 vCPU sizes arrived in June 2026). Windows tasks start at 1 vCPU and top out lower. Linux tasks can run on x86 or ARM (Graviton).

Billing is per second, with a one-minute minimum for Linux (five minutes for Windows), based on the vCPU, memory, operating system, CPU architecture and any extra storage you configure. Each task includes 20 GB of ephemeral storage; you pay only for more.

Fargate Spot

Fargate Spot runs ECS tasks on spare capacity at up to 70% off the regular Fargate price. When AWS needs the capacity back, the task gets a two-minute warning and is stopped. It suits work that can be interrupted and retried: batch jobs, queue workers, test environments. It's for Linux tasks on ECS, not for your only copy of a production API.

The catch

Fargate trades control for convenience:

  • No GPUs. The gpu task definition parameter isn't valid on Fargate.
  • No access to the host: no SSH to the server, no privileged containers, and some task definition settings aren't supported.
  • Cost at steady load. For workloads that run flat out around the clock, well-packed EC2 instances with Savings Plans can cost less. Compare both with your real usage before committing.

A common mistake is oversizing tasks "to be safe". On Fargate you pay for what you request, not what you use, so right-size CPU and memory from real metrics.

If you need GPUs or specific instance types but still want AWS to manage the servers, look at ECS Managed Instances; see ECS tasks and services.

Where AI fits

Most of an AI application isn't the model. It's the microservices around it: the API that receives requests, the retrieval step that searches your documents, the queue workers that process uploads. When the model itself is hosted elsewhere, for example on Amazon Bedrock, those services need CPU and memory, not GPUs, and Fargate fits them well: each one scales on its own, with no servers to patch.

Self-hosting a model that needs a GPU is different: that belongs on EC2 or ECS Managed Instances, not Fargate.

Quick recap

  • Fargate runs containers for ECS and EKS with no servers to manage.
  • You choose CPU and memory per task and pay per second for what you request.
  • Fargate Spot is up to 70% cheaper for interruptible work.
  • No GPUs: put GPU models on EC2 or ECS Managed Instances.
AWS in 1 Min #85 · 1:22

Need an AWS expert on your team?

I'm David, an AWS expert and fractional cloud consultant. I work alongside your team to run your cloud and infrastructure: architecture, security, cost and day-to-day operations. You get senior AWS experience when you need it, without the cost of a full-time hire.

  • Architecture reviews and a clear plan for what to fix first
  • Security hardening: IAM, networking, audits
  • Lower AWS bills without slowing your team down
  • Hands-on help with AI workloads on AWS