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.