File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ gcloud run deploy $MY_RUN_SERVICE \
4343Create 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
4949Create a Cloud Storage (via Audit Log) trigger:
@@ -62,7 +62,7 @@ gcloud alpha events triggers create $MY_GCS_TRIGGER \
6262Test 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
6868Observe the Cloud Run service printing upon receiving an event in Cloud Logging:
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ gcloud run deploy $MY_RUN_SERVICE \
3737Create 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
4343Create a Service Account for Eventarc trigger
@@ -67,7 +67,7 @@ Test your Cloud Run service by creating a GCS event:
6767
6868``` sh
6969touch testfile.txt
70- gsutil copy testfile.txt gs://$MY_GCS_BUCKET
70+ gcloud storage cp testfile.txt gs://$MY_GCS_BUCKET
7171```
7272
7373Observe the Cloud Run service printing upon receiving an event in Cloud Logging:
You can’t perform that action at this time.
0 commit comments