aws-actions / amazon-ecs-deploy-task-definition

Registers an Amazon ECS task definition and deploys it to an ECS service.
MIT License
649 stars 240 forks source link

Deploy multiple services with same task definition #420

Open msalinasboz opened 1 year ago

msalinasboz commented 1 year ago

Hi! we use task definitions to deploy many services, but at the moment when the task definition is deployed, each service has a different version of it, we expect that the previous task definitions created by de action be the same for all the services, otherways in ecs we have a lot of task definition with the same definition but different number of task.

taskdeifnition

Some idea what is happen or what we are doing in the wrong way?

varunchillara27 commented 1 year ago

Are you using strategy matrix to pull in multiple images from ECR to ECS? I am in a similar situation, where multiple tasks are created on ECS whenever a deployment of multi-containers takes place

msalinasboz commented 1 year ago

No, im building the image in the job Build Image, then i take the output image and use it on task definition