Skip to content

Commit e444e2a

Browse files
authored
fix: grant roles/billing.viewer to the seed service account in helper. (#666)
1 parent 0370e0f commit e444e2a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

helpers/setup-sa.sh

+8
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,14 @@ gcloud organizations add-iam-policy-binding \
182182
--role="roles/billing.user" \
183183
--user-output-enabled false
184184

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+
185193
# Grant roles/compute.xpnAdmin to the service account on the organization
186194
echo "Adding role roles/compute.xpnAdmin..."
187195
gcloud organizations add-iam-policy-binding \

0 commit comments

Comments
 (0)