Skip to content

Commit a82af07

Browse files
chore: Migrate gsutil usage to gcloud storage (#2705)
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent b6b55b6 commit a82af07

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

samples/compute/startup-script.sh

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

3333
# Create a Google Cloud Storage bucket.
34-
gsutil mb gs://$CS_BUCKET
34+
gcloud storage buckets create gs://$CS_BUCKET
3535

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

4040
# [END compute_apiary_startup_script]

0 commit comments

Comments
 (0)