Skip to content

Commit f0de0f6

Browse files
chore: Migrate gsutil usage to gcloud storage (#4211)
Co-authored-by: Katie McLaughlin <katie@glasnt.com>
1 parent b8c49e6 commit f0de0f6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

eventarc/audit-storage/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ gcloud run deploy $MY_RUN_SERVICE \
3535
Create a _single region_ Cloud Storage bucket:
3636

3737
```sh
38-
gsutil mb -p $(gcloud config get-value project) \
39-
-l us-central1 \
38+
gcloud storage buckets create --project=$(gcloud config get-value project) \
39+
--location=us-central1 \
4040
gs://"$MY_GCS_BUCKET"
4141
```
4242

@@ -56,7 +56,7 @@ gcloud beta eventarc triggers create my-gcs-trigger \
5656
Test your Cloud Run service by creating a GCS event:
5757

5858
```sh
59-
gsutil defstorageclass set NEARLINE gs://"$MY_GCS_BUCKET"
59+
gcloud storage buckets update --default-storage-class=NEARLINE gs://"$MY_GCS_BUCKET"
6060
```
6161

6262
Observe the Cloud Run service printing upon receiving an event in Cloud Logging:

0 commit comments

Comments
 (0)