Skip to content

Commit

Permalink
fix: grant roles/billing.viewer to the seed service account in helper. (
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante authored Dec 16, 2021
1 parent 0370e0f commit e444e2a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions helpers/setup-sa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,14 @@ gcloud organizations add-iam-policy-binding \
--role="roles/billing.user" \
--user-output-enabled false

# Grant roles/billing.viewer to the service account on the organization
echo "Adding role roles/billing.viewer..."
gcloud organizations add-iam-policy-binding \
"${ORG_ID}" \
--member="serviceAccount:${SA_ID}" \
--role="roles/billing.viewer" \
--user-output-enabled false

# Grant roles/compute.xpnAdmin to the service account on the organization
echo "Adding role roles/compute.xpnAdmin..."
gcloud organizations add-iam-policy-binding \
Expand Down

0 comments on commit e444e2a

Please sign in to comment.