Interview Prep/AWS/Containers and Serverless

What are ECS task definitions, tasks and services?

BeginnerConceptContainers and Serverless
Answer

A task definition is the versioned blueprint: containers, images, CPU/memory, ports, env vars, roles, logging, volumes. A task is a running instantiation. A service keeps N tasks running, replaces failed ones and integrates with load balancers and deployments. One-off jobs use run-task without a service.

aws ecs update-service --cluster prod --service api --task-definition api:42 --force-new-deployment
aws All AWS questions Roadmap: EKS, ECS & serverless on AWS

More on Containers and Serverless