hardgcloud
Make all objects in a Cloud Storage bucket publicly readable
command
gcloud storage buckets add-iam-policy-binding gs://BUCKET --member allUsers --role roles/storage.objectVieweralso accepted
gcloud storage buckets add-iam-policy-bindingcommand
gcloud storage buckets add-iam-policy-binding gs://BUCKET --member allUsers --role roles/storage.objectVieweralso accepted
gcloud storage buckets add-iam-policy-bindingPart of the Google Cloud CLI (gcloud) — Cloud Storage category.
| Flag | Purpose |
|---|---|
--member | Boolean flag |
--role | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →