Home › Forums › AWS › AWS Certified DevOps Engineer Professional › DOP – SDLC Automation – Ensure ECS containers have the latest version
-
DOP – SDLC Automation – Ensure ECS containers have the latest version
Ariel Tchougang updated 3 weeks, 5 days ago
1 Member
·
1
Post
-
About the following question:
A company has an Amazon ECS cluster with Service Auto Scaling which consists of multiple Amazon EC2 instances that runs a Docker-based application. The development team always pushes a new image to a private Docker container registry whenever they publish a new version of their application. They stop and start all of the tasks to ensure that the containers have the latest version of the application. However, the team noticed that the new tasks are occasionally running the old image of the application.
As the DevOps engineer, what should you do to fix this issue?
1 – Restart the ECS agent.
2 – Configure the task definition to use the repository-url/image@digest format then manually update the SHA-256 digest of the image.
3 – Migrate your repository from your private Docker container registry to Amazon ECR.
4 – Ensure that the latest tag is being used in the Docker image of the task definition.
You propose answer 1, while I think answer 2 is the most appropriate here, as this solves the issue once for all. Furthermore it does help better keeping track of the app version change lifecycle and history.
Log in to reply.