Skip to content

Commit d403829

Browse files
Migrate gsutil usage to gcloud storage (#13728)
1 parent 9ccd9d7 commit d403829

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pubsub/streaming-analytics/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Sample(s) showing how to use [Google Cloud Pub/Sub] with [Google Cloud Dataflow]
8080
```bash
8181
export BUCKET_ID=your-gcs-bucket-id
8282

83-
gsutil mb gs://$BUCKET_ID
83+
gcloud storage buckets create gs://$BUCKET_ID
8484
```
8585

8686
1. Start a [Google Cloud Scheduler] job that publishes one message to a [Google Cloud Pub/Sub] topic every minute. This will create an [App Engine] app if one has never been created on the project.
@@ -173,7 +173,7 @@ After the job has been submitted, you can check its status in the [GCP Console D
173173
You can also check the output to your GCS bucket using the command line below or in the [GCP Console Storage page]. You may need to wait a few minutes for the files to appear.
174174

175175
```bash
176-
gsutil ls gs://$BUCKET_ID/samples/
176+
gcloud storage ls gs://$BUCKET_ID/samples/
177177
```
178178

179179
## Cleanup
@@ -198,10 +198,10 @@ gsutil ls gs://$BUCKET_ID/samples/
198198

199199
```bash
200200
# Delete only the files created by this sample.
201-
gsutil -m rm -rf "gs://$BUCKET_ID/samples/output*"
201+
gcloud storage rm --recursive --continue-on-error "gs://$BUCKET_ID/samples/output*"
202202
203203
# [optional] Remove the Cloud Storage bucket.
204-
gsutil rb gs://$BUCKET_ID
204+
gcloud storage buckets delete gs://$BUCKET_ID
205205
```
206206

207207
[Apache Beam]: https://beam.apache.org/

0 commit comments

Comments
 (0)