Commit 35276e8526 for aom
commit 35276e852612b0e336731b839148ae110819885b
Author: James Zern <jzern@google.com>
Date: Thu Jun 4 11:48:05 2026 -0700
README.md: fix gcloud storage role
Use `roles/storage.legacyObjectReader` instead of `roles/objectViewer`.
Fixes:
```
ERROR: (gcloud.storage.objects.add-iam-policy-binding) HTTPError 400:
roles/storage.objectViewer is not a valid role for
projects/_/buckets/aom-test-data/objects/...
```
See also:
https://docs.cloud.google.com/storage/docs/access-control/iam-roles
Bug: 512387213
Change-Id: Ic404394bad3e91fa815c05571aee89b273442e51
diff --git a/README.md b/README.md
index f821964342..0e88d3a8a0 100644
--- a/README.md
+++ b/README.md
@@ -477,7 +477,7 @@ command:
$ gcloud storage objects add-iam-policy-binding \
gs://aom-test-data/test-data-file-name \
--member="allUsers" \
- --role="roles/storage.objectViewer"
+ --role="roles/storage.legacyObjectReader"
~~~
This command grants the `AllUsers` group READ access to the file named
"test-data-file-name" in the `aom-test-data` bucket.