What is the difference between a task and a service in AWS ECS?

Bob Jones picture Bob Jones · Mar 22, 2017 · Viewed 30.3k times · Source

It appears that one can either run a Task or a Service based on a Task Definition. What are the differences and similarities between Task and Service? Is there a clue in the fact that one can specify "Task Group" when creating Task but not Service? Are Task and Service hierarchically equal instantiations of Task Definition, or is Service composed of Tasks?

Answer

talentedmrjones picture talentedmrjones · Mar 22, 2017

A Task Definition is a collection of 1 or more container configurations