Last active
March 27, 2020 11:09
-
-
Save ljulliar/92d7b249d49036526fcef1e22c63758c 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