amazon-ecs-deploy-task-definition icon indicating copy to clipboard operation
amazon-ecs-deploy-task-definition copied to clipboard

Create a new task revision with deploying the service

Open suraj-sundariya opened this issue 1 year ago • 3 comments

Hi Team,

I just want to create a new task revision without deploying any service.

It is an ECS task without service which will be running as a separate task.

- name: Create housekeeping task
        id: task-def-housekeeping
        uses: aws-actions/amazon-ecs-render-task-definition@v1
        with:
          task-definition: .aws/task-def-housekeeping.json
          container-name: recluster-user-housekeeping
          image: ${{ steps.build-image.outputs.image }}

The above code does not create new task revision.

suraj-sundariya avatar Oct 03 '23 14:10 suraj-sundariya

I think AWS hasn't created that action yet. Maybe you will find https://github.com/marketplace/actions/ecs-deploy-task-definition-to-scheduled-task-action-for-github-actions useful for now.

rafaelbernard avatar Dec 18 '23 01:12 rafaelbernard

The service input is optional (also cluster) I got this working by not specifying them hope this helps.

notAmine avatar Feb 01 '24 21:02 notAmine