File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,13 @@ function pollForSpecificServiceUpdate() {
6969 while true ; do
7070 RESPONSE=$( describeService)
7171 DEPLOYMENT=$( echo " $RESPONSE " | jq -r --arg deploymentId " $1 " ' .services[]?.deployments[] | select(.id==$deploymentId)' )
72+
73+ if [ -z " $DEPLOYMENT " ]; then
74+ echo -e " ${ORANGE} Deployment with ID $1 could not be found. Likely replaced by a manual or external deployment." ;
75+ echo -e " ${ORANGE} Exiting polling loop. Please verify deployment status in the AWS Console."
76+ exit 0;
77+ fi
78+
7279 DESIRED_COUNT=$( echo " $DEPLOYMENT " | jq -r ' .desiredCount // 0' )
7380 RUNNING_COUNT=$( echo " $DEPLOYMENT " | jq -r ' .runningCount // 0' )
7481 PENDING_COUNT=$( echo " $DEPLOYMENT " | jq -r ' .pendingCount // 0' )
You can’t perform that action at this time.
0 commit comments