Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions eventarc/audit-storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions eventarc/storage-handler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down