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

Support passing deployment configuration

Open rantoniuk opened this issue 8 months ago • 1 comments

Related to #113

I'd like to specify deployment-configuration options, to basically achieve the same I can do with AWS CLI:

aws ecs update-service --cluster EcsCluster --service Service --task-definition task-def --force-new-deployment --deployment-configuration "minimumHealthyPercent=0"

It seems however the deployment-configuration is not supported at the moment.

Workaround in case someone needs this as well:

      - name: Deploy
        run: |
          aws ecs update-service --cluster ${{ env.ECS_CLUSTER }} --service ${{ env.ECS_SERVICE }} \
          --task-definition ${{ env.ECS_TASK_DEFINITION_FAMILY }} --force-new-deployment --deployment-configuration "minimumHealthyPercent=0"

      - name: Deploy (wait)
        run: |
          aws ecs wait services-stable --cluster ${{ env.ECS_CLUSTER }} --services ${{ env.ECS_SERVICE }}

rantoniuk avatar Jun 21 '24 17:06 rantoniuk