Skip to content

Commit

Permalink
fix: Update installation script for Stable diffusion GPU blueprint (#531
Browse files Browse the repository at this point in the history
)
  • Loading branch information
askulkarni2 committed May 14, 2024
2 parents 561ff94 + e2fe0fd commit e1fb650
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ai-ml/jark-stack/terraform/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ terraform init -upgrade
for target in "${targets[@]}"
do
echo "Applying module $target..."
apply_output=$(terraform apply -target="$target" -var="region=$region" -auto-approve 2>&1 | tee /dev/tty)
apply_output=$(terraform apply -target="$target" -auto-approve 2>&1 | tee /dev/tty)
if [[ ${PIPESTATUS[0]} -eq 0 && $apply_output == *"Apply complete"* ]]; then
echo "SUCCESS: Terraform apply of $target completed successfully"
else
Expand All @@ -24,7 +24,7 @@ done

# Final apply to catch any remaining resources
echo "Applying remaining resources..."
apply_output=$(terraform apply -var="region=$region" -auto-approve 2>&1 | tee /dev/tty)
apply_output=$(terraform apply -auto-approve 2>&1 | tee /dev/tty)
if [[ ${PIPESTATUS[0]} -eq 0 && $apply_output == *"Apply complete"* ]]; then
echo "SUCCESS: Terraform apply of all modules completed successfully"
else
Expand Down

0 comments on commit e1fb650

Please sign in to comment.