-
-
Save kevinmcalear/28dc43517c9706384fdc98a1a83e0dfd to your computer and use it in GitHub Desktop.
Setup service account roles (Photo Album on Google Cloud Run)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup Photo Album service account | |
PA_SVC_ACCOUNT=photo-album-runner@$PROJECT_ID.iam.gserviceaccount.com | |
# Grant GCS admin role | |
gcloud projects add-iam-policy-binding $PROJECT_ID \ | |
--member serviceAccount:$PA_SVC_ACCOUNT --role roles/storage.admin | |
# Grant GCS admin role | |
gcloud projects add-iam-policy-binding $PROJECT_ID \ | |
--member serviceAccount:$PA_SVC_ACCOUNT --role roles/cloudsql.client | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment