We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0370e0f commit e444e2aCopy full SHA for e444e2a
helpers/setup-sa.sh
@@ -182,6 +182,14 @@ gcloud organizations add-iam-policy-binding \
182
--role="roles/billing.user" \
183
--user-output-enabled false
184
185
+# Grant roles/billing.viewer to the service account on the organization
186
+echo "Adding role roles/billing.viewer..."
187
+gcloud organizations add-iam-policy-binding \
188
+ "${ORG_ID}" \
189
+ --member="serviceAccount:${SA_ID}" \
190
+ --role="roles/billing.viewer" \
191
+ --user-output-enabled false
192
+
193
# Grant roles/compute.xpnAdmin to the service account on the organization
194
echo "Adding role roles/compute.xpnAdmin..."
195
gcloud organizations add-iam-policy-binding \
0 commit comments