Skip to content

Commit 4864a49

Browse files
committed
replace obsolete gsutil with gcloud storage
1 parent 4294e77 commit 4864a49

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

pmtiles/cloud-storage.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,13 @@ S3 CORS Configuration:
114114

115115
```
116116
echo '[{"maxAgeSeconds": 300, "method": ["GET", "HEAD"], "origin": ["https://example.com"], "responseHeader": ["range","etag","if-match"]}]' > cors.json
117-
gsutil cors set cors.json gs://my-bucket-name
117+
118+
gcloud storage buckets update gs://my-bucket-name --cors-file=cors.json
118119
```
119120

120-
#### CORS: gsutil tool
121+
#### CORS: gcloud
121122

122-
Install the [gsutil tool](https://cloud.google.com/storage/docs/gsutil_install)
123+
Install the [gcloud CLI](https://cloud.google.com/sdk/docs/install) to set a [CORS Configuration](https://cloud.google.com/storage/docs/cors-configurations):
123124

124125
```json title="cors.json"
125126
[
@@ -133,7 +134,10 @@ Install the [gsutil tool](https://cloud.google.com/storage/docs/gsutil_install)
133134
```
134135

135136
```bash
136-
gsutil cors set gcors.json gs://my-bucket-name
137+
# view CORS settings
138+
gcloud storage buckets describe gs://my-bucket-name --format="default(cors_config)"
139+
140+
gcloud storage buckets update gs://my-bucket-name --cors-file=cors.json
137141
```
138142

139143
### Microsoft Azure

0 commit comments

Comments
 (0)