diff --git a/eventarc/audit-storage/README.md b/eventarc/audit-storage/README.md index c0b08fbfc8a..ddf8068d51f 100644 --- a/eventarc/audit-storage/README.md +++ b/eventarc/audit-storage/README.md @@ -43,7 +43,7 @@ gcloud run deploy $MY_RUN_SERVICE \ Create a _single region_ Cloud Storage bucket: ```sh -gsutil mb -p $(gcloud config get-value project) -l us-central1 gs://"$MY_GCS_BUCKET" +gcloud storage buckets create gs://"$MY_GCS_BUCKET" --project $(gcloud config get-value project) --location us-central1 ``` Create a Cloud Storage (via Audit Log) trigger: @@ -62,7 +62,7 @@ gcloud alpha events triggers create $MY_GCS_TRIGGER \ Test your Cloud Run service by creating a GCS event: ```sh -gsutil defstorageclass set NEARLINE gs://$MY_GCS_BUCKET +gcloud storage buckets update gs://$MY_GCS_BUCKET --default-storage-class=NEARLINE ``` Observe the Cloud Run service printing upon receiving an event in Cloud Logging: diff --git a/eventarc/storage-handler/README.md b/eventarc/storage-handler/README.md index 7b339ddab3b..dd70847df17 100644 --- a/eventarc/storage-handler/README.md +++ b/eventarc/storage-handler/README.md @@ -37,7 +37,7 @@ gcloud run deploy $MY_RUN_SERVICE \ Create a _single region_ Cloud Storage bucket: ```sh -gsutil mb -p $PROJECT_ID -l us-central1 gs://"$MY_GCS_BUCKET" +gcloud storage buckets create gs://"$MY_GCS_BUCKET" --project $PROJECT_ID --location us-central1 ``` Create a Service Account for Eventarc trigger @@ -67,7 +67,7 @@ Test your Cloud Run service by creating a GCS event: ```sh touch testfile.txt -gsutil copy testfile.txt gs://$MY_GCS_BUCKET +gcloud storage cp testfile.txt gs://$MY_GCS_BUCKET ``` Observe the Cloud Run service printing upon receiving an event in Cloud Logging: