diff --git a/ai-ml/jark-stack/terraform/cleanup.sh b/ai-ml/jark-stack/terraform/cleanup.sh index 797c2de67..f9c5daca6 100755 --- a/ai-ml/jark-stack/terraform/cleanup.sh +++ b/ai-ml/jark-stack/terraform/cleanup.sh @@ -7,7 +7,7 @@ echo "Destroying RayService..." # Delete the Ingress/SVC before removing the addons TMPFILE=$(mktemp) -terraform -chdir=$SCRIPTDIR output -raw configure_kubectl > "$TMPFILE" +terraform output -raw configure_kubectl > "$TMPFILE" # check if TMPFILE contains the string "No outputs found" if [[ ! $(cat $TMPFILE) == *"No outputs found"* ]]; then echo "No outputs found, skipping kubectl delete" @@ -65,7 +65,7 @@ for sg in $(aws ec2 describe-security-groups \ ## Final destroy to catch any remaining resources echo "Destroying remaining resources..." -destroy_output=$(terraform destroy -var="region=$region"-auto-approve 2>&1 | tee /dev/tty) +destroy_output=$(terraform destroy -var="region=$region" -auto-approve 2>&1 | tee /dev/tty) if [[ ${PIPESTATUS[0]} -eq 0 && $destroy_output == *"Destroy complete"* ]]; then echo "SUCCESS: Terraform destroy of all modules completed successfully" else diff --git a/ai-ml/jark-stack/terraform/src/service/ray-service.yaml b/ai-ml/jark-stack/terraform/src/service/ray-service.yaml index a72a2c904..26cd2f1b9 100644 --- a/ai-ml/jark-stack/terraform/src/service/ray-service.yaml +++ b/ai-ml/jark-stack/terraform/src/service/ray-service.yaml @@ -16,6 +16,7 @@ spec: importPath: dogbooth:entrypoint runtimeEnv: | env_vars: {"MODEL_ID": "askulkarni2/dogbooth"} + #env_vars: {"MODEL_ID": "stabilityai/stable-diffusion-2-1"} rayClusterConfig: rayVersion: '2.6.0' headGroupSpec: