Skip to content

Commit 3ca3f7f

Browse files
chore: Migrate gsutil usage to gcloud storage (#5439)
* chore: Migrate gsutil usage to gcloud storage * Update bookshelf.go --------- Co-authored-by: Katie McLaughlin <katie@glasnt.com>
1 parent 6f93e1d commit 3ca3f7f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

getting-started/bookshelf/bookshelf.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ func NewBookshelf(projectID string, db BookDatabase) (*Bookshelf, error) {
7575

7676
// This Cloud Storage bucket must exist to be able to upload book pictures.
7777
// You can create it and make it public by running:
78-
// gsutil mb my-project_bucket
79-
// gsutil defacl set public-read gs://my-project_bucket
78+
// gcloud storage buckets create gs://my-project_bucket
79+
// gcloud storage buckets update gs://my-project_bucket --predefined-default-object-acl=publicRead
8080
// replacing my-project with your project ID.
8181
bucketName := projectID + "_bucket"
8282
storageClient, err := storage.NewClient(ctx)

getting-started/gce/startup-script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ chmod +x google-fluentd-install.sh && ./google-fluentd-install.sh
2828
service google-fluentd restart &
2929

3030
APP_LOCATION=$(curl -s "http://metadata.google.internal/computeMetadata/v1/instance/attributes/app-location" -H "Metadata-Flavor: Google")
31-
gsutil cp "$APP_LOCATION" app.tar.gz
31+
gcloud storage cp "$APP_LOCATION" app.tar.gz
3232
tar -xzf app.tar.gz
3333

3434
# Start the service included in app.tar.gz.

0 commit comments

Comments
 (0)