Skip to content

Commit f01f848

Browse files
chore: Migrate gsutil usage to gcloud storage (#10219)
* chore: Migrate gsutil usage to gcloud storage * Update README.md * Update README.md * Update README.md
1 parent a638305 commit f01f848

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

flexible/java-11/cloudstorage/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ Before you can run or deploy the sample, you will need to do the following:
1818
SDK](https://cloud.google.com/sdk) using the following command:
1919

2020
```sh
21-
gsutil mb gs://[your-bucket-name]
21+
gcloud storage buckets create gs://[your-bucket-name]
2222
```
2323

2424
1. Set the default ACL on your bucket to public read in order to serve files
2525
directly from Cloud Storage. You can do this with the [Google Cloud
2626
SDK](https://cloud.google.com/sdk) using the following command:
2727

2828
```sh
29-
gsutil defacl set public-read gs://[your-bucket-name]
29+
gcloud storage buckets update gs://[your-bucket-name] --predefined-default-object-acl=publicRead
3030
```
3131

3232
1. Update the bucket name in `src/main/appengine/app.yaml`. This makes the

flexible/java-17/cloudstorage/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ Before you can run or deploy the sample, you will need to do the following:
1818
SDK](https://cloud.google.com/sdk) using the following command:
1919

2020
```sh
21-
gsutil mb gs://[your-bucket-name]
21+
gcloud storage buckets create gs://[your-bucket-name]
2222
```
2323

2424
1. Set the default ACL on your bucket to public read in order to serve files
2525
directly from Cloud Storage. You can do this with the [Google Cloud
2626
SDK](https://cloud.google.com/sdk) using the following command:
2727

2828
```sh
29-
gsutil defacl set public-read gs://[your-bucket-name]
29+
gcloud storage buckets update gs://[your-bucket-name] --predefined-default-object-acl=publicRead
3030
```
3131

3232
1. Update the bucket name in `src/main/appengine/app.yaml`. This makes the

flexible/java-8/cloudstorage/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ Before you can run or deploy the sample, you will need to do the following:
1212
2. Create a Cloud Storage Bucket. You can do this with the [Google Cloud SDK](https://cloud.google.com/sdk) using the following command:
1313

1414
```
15-
$ gsutil mb gs://[your-bucket-name]
15+
$ gcloud storage buckets create gs://[your-bucket-name]
1616
```
1717
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:
1818

1919
```
20-
$ gsutil defacl set public-read gs://[your-bucket-name]
20+
$ gcloud storage buckets update gs://[your-bucket-name] --predefined-default-object-acl=publicRead
2121
```
2222
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.
2323

0 commit comments

Comments
 (0)