Skip to content

Commit e99b669

Browse files
committed
update role when adding an IAM policy to a Pub/Sub topic
1 parent 7d89e63 commit e99b669

File tree

1 file changed

+1
-1
lines changed
  • broker/cloud_run/lsst/classify_upsilon

1 file changed

+1
-1
lines changed

broker/cloud_run/lsst/classify_upsilon/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ else
6767
# set IAM policies on public Pub/Sub resources
6868
if [ "$testid" = "False" ]; then
6969
user="allUsers"
70-
roleid="projects/${GOOGLE_CLOUD_PROJECT}/roles/userPublic"
70+
roleid="roles/pubsub.subscriber"
7171
gcloud pubsub topics add-iam-policy-binding "${ps_output_topic}" --member="${user}" --role="${roleid}"
7272
fi
7373

0 commit comments

Comments
 (0)