Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ function pollForSpecificServiceUpdate() {
while true; do
RESPONSE=$(describeService)
DEPLOYMENT=$(echo "$RESPONSE" | jq -r --arg deploymentId "$1" '.services[]?.deployments[] | select(.id==$deploymentId)')

if [ -z "$DEPLOYMENT" ]; then
echo -e "${ORANGE}Deployment with ID $1 could not be found. Likely replaced by a manual or external deployment.";
echo -e "${ORANGE}Exiting polling loop. Please verify deployment status in the AWS Console."
exit 0;
fi

DESIRED_COUNT=$(echo "$DEPLOYMENT" | jq -r '.desiredCount // 0')
RUNNING_COUNT=$(echo "$DEPLOYMENT" | jq -r '.runningCount // 0')
PENDING_COUNT=$(echo "$DEPLOYMENT" | jq -r '.pendingCount // 0')
Expand Down