Skip to content

Service deployment is IN PROGRESS even wait-for-service-stability is true #838

@vitalykarasik

Description

@vitalykarasik

I use this for deployment

uses: aws-actions/amazon-ecs-deploy-task-definition@v2
      id: ecs-deploy
      timeout-minutes: 7
      with:
        task-definition: ${{ steps.task-def.outputs.task-definition }}
        service: ${{ env.ECS_SERVICE }}
        cluster: ${{ env.ECS_CLUSTER }}
        wait-for-service-stability: true

On the next step I'm checking deployment status using

aws ecs describe-services \ --cluster "$CLUSTER" \ --services "$SERVICE" \ --query 'services[0].deployments[?status==PRIMARY].rolloutState' \ --output text

Many times I'm getting "in progress" status.
I understand that "service is stable" != "deployment completed", but it will be nice to have a parameter to wait until deployment is finished.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions