diff --git a/flexible/java-11/cloudstorage/README.md b/flexible/java-11/cloudstorage/README.md index 07436e7ebd0..1a8b51f1446 100644 --- a/flexible/java-11/cloudstorage/README.md +++ b/flexible/java-11/cloudstorage/README.md @@ -18,7 +18,7 @@ Before you can run or deploy the sample, you will need to do the following: SDK](https://cloud.google.com/sdk) using the following command: ```sh - gsutil mb gs://[your-bucket-name] + gcloud storage buckets create gs://[your-bucket-name] ``` 1. Set the default ACL on your bucket to public read in order to serve files @@ -26,7 +26,7 @@ Before you can run or deploy the sample, you will need to do the following: SDK](https://cloud.google.com/sdk) using the following command: ```sh - gsutil defacl set public-read gs://[your-bucket-name] + gcloud storage buckets update gs://[your-bucket-name] --predefined-default-object-acl=publicRead ``` 1. Update the bucket name in `src/main/appengine/app.yaml`. This makes the diff --git a/flexible/java-17/cloudstorage/README.md b/flexible/java-17/cloudstorage/README.md index 07436e7ebd0..1a8b51f1446 100644 --- a/flexible/java-17/cloudstorage/README.md +++ b/flexible/java-17/cloudstorage/README.md @@ -18,7 +18,7 @@ Before you can run or deploy the sample, you will need to do the following: SDK](https://cloud.google.com/sdk) using the following command: ```sh - gsutil mb gs://[your-bucket-name] + gcloud storage buckets create gs://[your-bucket-name] ``` 1. Set the default ACL on your bucket to public read in order to serve files @@ -26,7 +26,7 @@ Before you can run or deploy the sample, you will need to do the following: SDK](https://cloud.google.com/sdk) using the following command: ```sh - gsutil defacl set public-read gs://[your-bucket-name] + gcloud storage buckets update gs://[your-bucket-name] --predefined-default-object-acl=publicRead ``` 1. Update the bucket name in `src/main/appengine/app.yaml`. This makes the diff --git a/flexible/java-8/cloudstorage/README.md b/flexible/java-8/cloudstorage/README.md index 986d2d6621a..4c821531bf5 100644 --- a/flexible/java-8/cloudstorage/README.md +++ b/flexible/java-8/cloudstorage/README.md @@ -12,12 +12,12 @@ Before you can run or deploy the sample, you will need to do the following: 2. Create a Cloud Storage Bucket. You can do this with the [Google Cloud SDK](https://cloud.google.com/sdk) using the following command: ``` - $ gsutil mb gs://[your-bucket-name] + $ gcloud storage buckets create gs://[your-bucket-name] ``` 3. Set the default ACL on your bucket to public read in order to serve files directly from Cloud Storage. You can do this with the [Google Cloud SDK](https://cloud.google.com/sdk) using the following command: ``` - $ gsutil defacl set public-read gs://[your-bucket-name] + $ gcloud storage buckets update gs://[your-bucket-name] --predefined-default-object-acl=publicRead ``` 4. Update the bucket name in `src/main/appengine/app.yaml`. This makes the bucket name an environment variable in deployment. You still need to set the environment variable when running locally, as shown below.