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
More on Containers and Serverless
ECS vs EKS vs Fargate: what is the relationship?BeginnerWhat are ECS capacity providers?IntermediateWhat is the difference between the ECS task role and the task execution role?IntermediateHow does `awsvpc` network mode work in ECS?IntermediateWhat deployment strategies does ECS support?AdvancedWhat does the EKS control plane include and who manages it?Beginner