Skip to content

How do I update a Fargate service when I update the image using the same tag? #230

Answered by yorinasub17
yorinasub17 asked this question in Help
Discussion options

You must be logged in to vote

If you wish to rotate the containers in this scenario, the only option you have is to spin up a new set of replicas by doubling your replica count, and then tearing down the old replicas by spinning down the count.

Alternatively, you can do a manual rolling deploy by stopping each container, one at a time. When you stop a container, ECS or EKS will both spin up a new container to compensate.

There is no automated way to do this with terragrunt, or other declarative IaC tools (like kubectl) as they all depend on diffs in the configuration file itself to induce actions, and when you are updating the tag directly with new images, nothing will change in the IaC, and thus by design the IaC too…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by yorinasub17
Comment options

You must be logged in to vote
2 replies
@yorinasub17
Comment options

@nmilev-scribe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
2 participants