From f932308d9c733e3f69748ca26da98b4302fe3f94 Mon Sep 17 00:00:00 2001 From: gurusai-voleti Date: Thu, 8 Jan 2026 10:49:39 +0000 Subject: [PATCH 1/2] chore: Migrate gsutil usage to gcloud storage --- dataflow/encryption-keys/README.md | 6 +++--- dataflow/flex-templates/streaming_beam_sql/README.md | 6 +++--- dataflow/templates/README.md | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/dataflow/encryption-keys/README.md b/dataflow/encryption-keys/README.md index 0c051fad1b4..eae43f1d4fa 100644 --- a/dataflow/encryption-keys/README.md +++ b/dataflow/encryption-keys/README.md @@ -25,7 +25,7 @@ Additionally, for this sample you need the following: ```sh export BUCKET=your-gcs-bucket - gsutil mb gs://$BUCKET + gcloud storage buckets create gs://$BUCKET ``` 1. [Create a symmetric key ring](https://cloud.google.com/kms/docs/creating-keys). @@ -151,10 +151,10 @@ To avoid incurring charges to your GCP account for the resources used: ```sh # Remove only the files created by this sample. -gsutil -m rm -rf "gs://$BUCKET/samples/dataflow/kms" +gcloud storage rm --recursive --continue-on-error "gs://$BUCKET/samples/dataflow/kms" # [optional] Remove the Cloud Storage bucket. -gsutil rb gs://$BUCKET +gcloud storage buckets delete gs://$BUCKET # Remove the BigQuery table. bq rm -f -t $PROJECT:$DATASET.$TABLE diff --git a/dataflow/flex-templates/streaming_beam_sql/README.md b/dataflow/flex-templates/streaming_beam_sql/README.md index a047c21ea2e..300228ada26 100644 --- a/dataflow/flex-templates/streaming_beam_sql/README.md +++ b/dataflow/flex-templates/streaming_beam_sql/README.md @@ -25,7 +25,7 @@ Additionally, for this sample you need the following: ```sh export BUCKET="your-gcs-bucket" - gsutil mb gs://$BUCKET + gcloud storage buckets create gs://$BUCKET ``` 1. Create a @@ -241,7 +241,7 @@ The following sections describe how to delete or turn off these resources. 1. Delete the template spec file from Cloud Storage. ```sh - gsutil rm $TEMPLATE_PATH + gcloud storage rm $TEMPLATE_PATH ``` 1. Delete the Flex Template container image from Container Registry. @@ -287,7 +287,7 @@ The following sections describe how to delete or turn off these resources. > These objects cannot be recovered. > > ```sh - > gsutil rm -r gs://$BUCKET + > gcloud storage rm --recursive gs://$BUCKET > ``` ## Limitations diff --git a/dataflow/templates/README.md b/dataflow/templates/README.md index 4e2964b1da2..3cc013dbbd7 100644 --- a/dataflow/templates/README.md +++ b/dataflow/templates/README.md @@ -18,7 +18,7 @@ Additionally, for this sample you need the following: ```sh export BUCKET=your-gcs-bucket - gsutil mb gs://$BUCKET + gcloud storage buckets create gs://$BUCKET ``` 1. Clone the `java-docs-samples` repository. @@ -64,7 +64,7 @@ mvn compile exec:java \ --runner=DataflowRunner" # Upload the metadata file. -gsutil cp WordCount_metadata "$TEMPLATE_LOCATION"_metadata +gcloud storage cp WordCount_metadata "$TEMPLATE_LOCATION"_metadata ``` > For more information, see @@ -94,9 +94,9 @@ To avoid incurring charges to your GCP account for the resources used: ```bash # Remove only the files created by this sample. -gsutil -m rm -rf "$TEMPLATE_LOCATION*" -gsutil -m rm -rf "gs://$BUCKET/samples/dataflow/wordcount/" +gcloud storage rm --recursive --continue-on-error "$TEMPLATE_LOCATION*" +gcloud storage rm --recursive --continue-on-error "gs://$BUCKET/samples/dataflow/wordcount/" # [optional] Remove the Cloud Storage bucket. -gsutil rb gs://$BUCKET +gcloud storage buckets delete gs://$BUCKET ``` From fab9585c423c0af6341e8d57008324fe45bd052e Mon Sep 17 00:00:00 2001 From: gurusai-voleti Date: Thu, 8 Jan 2026 11:19:06 +0000 Subject: [PATCH 2/2] chore: update --- dataflow/flex-templates/kafka_to_bigquery/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dataflow/flex-templates/kafka_to_bigquery/README.md b/dataflow/flex-templates/kafka_to_bigquery/README.md index af795228a22..051e18fdae2 100644 --- a/dataflow/flex-templates/kafka_to_bigquery/README.md +++ b/dataflow/flex-templates/kafka_to_bigquery/README.md @@ -32,7 +32,7 @@ Additionally, for this sample you need the following: ```sh export BUCKET="your-gcs-bucket" - gsutil mb gs://$BUCKET + gcloud storage buckets create gs://$BUCKET ``` 1. Create a [BigQuery dataset](https://cloud.google.com/bigquery/docs/datasets). @@ -381,7 +381,7 @@ The following sections describe how to delete or turn off these resources. 1. Delete the template spec file from Cloud Storage. ```sh - gsutil rm $TEMPLATE_PATH + gcloud storage rm $TEMPLATE_PATH ``` 1. Delete the Flex Template container images from Container Registry. @@ -439,5 +439,5 @@ The following sections describe how to delete or turn off these resources. > These objects cannot be recovered. > > ```sh - > gsutil rm -r gs://$BUCKET + > gcloud storage rm --recursive gs://$BUCKET > ```