Reputation: 403
I made ecs
fargate
with container.
My procedure is like this
codecommit
-> codepipeline
(codebuild
) -> ecs repository
.
fargate
uses the ecs repository
When I push code to codecommit
, codepipeline
works and ecs repository
is updated.
However container in fargate
is not updated.
I stop the tasks manually, the tasks restart, but container itself is not updated.
What should I do for this?
I need to make codepipelline(again???) ecs repository to fargate.
Upvotes: 0
Views: 877
Reputation: 772
You need to update a task definition so your container can start using the updated image. And then you need to stop old task and start new task. Or, if this is an ECS Service, you need to update the service to use the updated task definition.
Upvotes: 2