Need to specify the project for instance deletion.

This commit is contained in:
2021-01-20 15:05:46 +13:00
parent b54268cc13
commit 7177ee362d
2 changed files with 2 additions and 2 deletions

View File

@ -13,6 +13,6 @@ for project in $(gcloud projects list | awk '{ print $1 }' | grep gitlab); do
for instance in $(gcloud compute instances list --project $project --format="value(name)"); do
# Delete the instance
gcloud compute instances delete --quiet $instance --zone australia-southeast1-a
gcloud compute instances delete --quiet $instance --zone australia-southeast1-a --project $project
done
done

View File

@ -121,7 +121,7 @@ for project in $(gcloud projects list | awk '{ print $1 }' | grep gitlab); do
for instance in $(gcloud compute instances list --project $project --format="value(name)"); do
# Delete the instance
gcloud compute instances delete --quiet $instance --zone australia-southeast1-a
gcloud compute instances delete --quiet $instance --zone australia-southeast1-a --project $project
done
done
#+end_src