As a newbie to AWS, I have been updating the task definition file every time when I have to update the service.
Say if I have a Task Definition 1 that has a Docker Image, and if I updated the Docker image, refreshing the service will get the latest docker image?
or do I need to update the Task Definition file to let the service pull the latest docker image?
In the AWS ECS, after updating the Docker image, it is necessary to update the task definition and update the relation with the service.
A tool such as ecs-deploy is useful to simplify this type of work. https://github.com/silinternational/ecs-deploy
If you want to update Docker image frequently, you can further automate such as deploying from CI service.