Skip to content

Commit 0b724c7

Browse files
chore: Migrate gsutil usage to gcloud storage (GoogleCloudPlatform#10218)
1 parent f01f848 commit 0b724c7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

eventarc/audit-storage/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ gcloud run deploy $MY_RUN_SERVICE \
4343
Create a _single region_ Cloud Storage bucket:
4444

4545
```sh
46-
gsutil mb -p $(gcloud config get-value project) -l us-central1 gs://"$MY_GCS_BUCKET"
46+
gcloud storage buckets create gs://"$MY_GCS_BUCKET" --project $(gcloud config get-value project) --location us-central1
4747
```
4848

4949
Create a Cloud Storage (via Audit Log) trigger:
@@ -62,7 +62,7 @@ gcloud alpha events triggers create $MY_GCS_TRIGGER \
6262
Test your Cloud Run service by creating a GCS event:
6363

6464
```sh
65-
gsutil defstorageclass set NEARLINE gs://$MY_GCS_BUCKET
65+
gcloud storage buckets update gs://$MY_GCS_BUCKET --default-storage-class=NEARLINE
6666
```
6767

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

eventarc/storage-handler/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ gcloud run deploy $MY_RUN_SERVICE \
3737
Create a _single region_ Cloud Storage bucket:
3838

3939
```sh
40-
gsutil mb -p $PROJECT_ID -l us-central1 gs://"$MY_GCS_BUCKET"
40+
gcloud storage buckets create gs://"$MY_GCS_BUCKET" --project $PROJECT_ID --location us-central1
4141
```
4242

4343
Create a Service Account for Eventarc trigger
@@ -67,7 +67,7 @@ Test your Cloud Run service by creating a GCS event:
6767

6868
```sh
6969
touch testfile.txt
70-
gsutil copy testfile.txt gs://$MY_GCS_BUCKET
70+
gcloud storage cp testfile.txt gs://$MY_GCS_BUCKET
7171
```
7272

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

0 commit comments

Comments
 (0)