diff --git a/manager/install.sh b/manager/install.sh index fb958ffc17..cfcf73b315 100755 --- a/manager/install.sh +++ b/manager/install.sh @@ -73,6 +73,11 @@ function ensure_eks() { cluster_status=$(echo "$cluster_info" | jq -r 'first | .Status') set -e + if [[ "$cluster_status" == "ACTIVE" ]] && [[ "$arg1" != "--update" ]]; then + echo "error: there is already a cluster named \"$CORTEX_CLUSTER_NAME\" in $CORTEX_REGION" + exit 1 + fi + if [ "$cluster_status" == "DELETING" ]; then echo "error: your cortex cluster named \"$CORTEX_CLUSTER_NAME\" in $CORTEX_REGION is currently spinning down; please try again once it is completely deleted (may take a few minutes)" exit 1