Introduction
When you want to run containers on AWS ECS, you need to tell AWS what your container looks like and how it should run. A task definition is like a recipe that describes your container, what resources it needs, and how it connects to the network.
When you want to run a web app inside a container on AWS ECS.
When you need to specify environment variables or ports for your container.
When you want to update your container image and redeploy with new settings.
When you want to run multiple containers together as one task.
When you want to control CPU and memory limits for your container.