From 7177ee362d8d94bcdfc083eda42228f87a80c954 Mon Sep 17 00:00:00 2001 From: James Blair Date: Wed, 20 Jan 2021 15:05:46 +1300 Subject: [PATCH] Need to specify the project for instance deletion. --- 5-teardown-cloud-resources.sh | 2 +- README.org | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/5-teardown-cloud-resources.sh b/5-teardown-cloud-resources.sh index 63868db..86160fa 100755 --- a/5-teardown-cloud-resources.sh +++ b/5-teardown-cloud-resources.sh @@ -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 diff --git a/README.org b/README.org index e12dfde..5a10d7b 100644 --- a/README.org +++ b/README.org @@ -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