From 2eca51b205082b9910ae3b5266905406bb7d28d0 Mon Sep 17 00:00:00 2001 From: gurusai-voleti Date: Thu, 29 Jan 2026 10:28:50 +0000 Subject: [PATCH] chore: Migrate gsutil usage to gcloud storage --- scripts/downscoping-with-cab-setup.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/downscoping-with-cab-setup.sh b/scripts/downscoping-with-cab-setup.sh index e2f847d94..2330fee87 100755 --- a/scripts/downscoping-with-cab-setup.sh +++ b/scripts/downscoping-with-cab-setup.sh @@ -74,18 +74,18 @@ service_account_email="" gcloud config set project ${project_id} # Create the GCS bucket. -gsutil mb -b on -l us-east1 gs://${bucket_id} +gcloud storage buckets create gs://${bucket_id} --uniform-bucket-level-access --location us-east1 # Give the specified service account the objectAdmin role for this bucket. -gsutil iam ch serviceAccount:${service_account_email}:objectAdmin gs://${bucket_id} +gcloud storage buckets add-iam-policy-binding gs://${bucket_id} --member=serviceAccount:${service_account_email} --role=roles/storage.objectAdmin # Create both objects. echo "first" >> ${first_object} echo "second" >> ${second_object} # Upload the created objects to the bucket. -gsutil cp ${first_object} gs://${bucket_id} -gsutil cp ${second_object} gs://${bucket_id} +gcloud storage cp ${first_object} gs://${bucket_id} +gcloud storage cp ${second_object} gs://${bucket_id} echo "Bucket ID: "${bucket_id} echo "First object ID: "${first_object}