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

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

Support passing deployment configuration #573

Open rantoniuk opened 1 week ago

rantoniuk commented 1 week ago

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 }}
leojasmim commented 4 days ago

I tried to use the codedeploy-deployment-config parameter but I get an error saying that this input is invalid even though it's in the action.yml definition.

image