Skip to content

Instantly share code, notes, and snippets.

@developer-guy
Created March 22, 2022 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save developer-guy/6361cc3e6a8913d338e284a72e6ebd09 to your computer and use it in GitHub Desktop.
Save developer-guy/6361cc3e6a8913d338e284a72e6ebd09 to your computer and use it in GitHub Desktop.
give necessary permissions to GCP SA
$ gcloud projects add-iam-policy-binding ${PROJECT_ID} \
 --role roles/cloudkms.verifier \
 --member serviceAccount:${GSA_NAME}@${PROJECT_ID}.iam.gserviceaccount.com
$ gcloud projects add-iam-policy-binding ${PROJECT_ID} \
 --role roles/cloudkms.viewer \
 --member serviceAccount:${GSA_NAME}@${PROJECT_ID}.iam.gserviceaccount.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment