Skip to content

Commit 231da32

Browse files
Migrate gsutil usage to gcloud storage (#13721)
* Migrate gsutil usage to gcloud storage * Update startup-script.sh --------- Co-authored-by: gurusai-voleti <gvoleti@google.com>
1 parent 8cca486 commit 231da32

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

compute/api/startup-script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ wget $IMAGE_URL
3030
convert * -pointsize 30 -fill white -stroke black -gravity center -annotate +10+40 "$TEXT" output.png
3131

3232
# Create a Google Cloud Storage bucket.
33-
gsutil mb gs://$CS_BUCKET
33+
gcloud storage buckets create gs://$CS_BUCKET
3434

3535
# Store the image in the Google Cloud Storage bucket and allow all users
3636
# to read it.
37-
gsutil cp -a public-read output.png gs://$CS_BUCKET/output.png
37+
gcloud storage cp --predefined-acl=publicRead output.png gs://$CS_BUCKET/output.png

0 commit comments

Comments
 (0)