AWS CLI ECS WAIT Command in Jenkinsfile

0

Hi guys, I've pipeline for creating ecs services. As you know, when you use 'aws ecs run-task' the command does not wait for running process it gives output immedeately. You could use sleep 300 command etc to wait updating ecs status to running state.

I found this command on cli aws ecs wait tasks-running --cluster ${clusterName} --tasks ${TASK_ID} But it gives

Waiter TasksRunning failed: Waiter encountered a terminal failure state

OR

Waiter TasksRunning failed: Waiter encountered a terminal failure state: For expression "tasks[].lastStatus" we matched expected path: "STOPPED" at least once

Any idea?

Aucune réponse

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions