Open tiancheng91 opened 2 years ago
while true; do terraform apply -auto-approve > run.log 2>&1 if grep -q 'Out of host capacity' run.log; then echo "failed at `date`, running..." sleep 180 continue fi echo "success @ `date`" break done