Advertisement
Beginner AWS, AWS Fargate

What is AWS Fargate and how does it change the way you run containers compared to managing EC2 instances yourself?

Short answer

AWS Fargate is a serverless compute engine for containers that lets you run ECS or EKS workloads without provisioning, patching, or managing any underlying EC2 instances yourself, since you simply specify the CPU and memory your container needs, and AWS automatically handles the…

Save AWS mock interview
Advertisement
AModel answer
AWS Fargate is a serverless compute engine for containers that lets you run ECS or EKS workloads without provisioning, patching, or managing any underlying EC2 instances yourself, since you simply specify the CPU and memory your container needs, and AWS automatically handles the underlying infrastructure, letting you focus entirely on your application rather than server management.
Example

aws ecs run-task --cluster my-cluster --task-definition my-task --launch-type FARGATE

Real-world example
A small development team runs its containerized application on Fargate instead of managing a fleet of EC2 instances, eliminating the need for anyone on the team to patch operating systems or manage instance capacity.
Likely follow-ups
  • How does Fargate pricing compare to running the same workload on EC2?
  • Does Fargate work with both ECS and EKS?
Related topics