Fix iam permissions.

This commit is contained in:
Mariano Cano 2020-09-24 12:37:29 -07:00
parent 42ce78ed43
commit 066c7ee10b

View file

@ -92,7 +92,7 @@ or using `gcloud` CLI:
# Add permissions to use the privateca API # Add permissions to use the privateca API
gcloud projects add-iam-policy-binding smallstep-cas-test \ gcloud projects add-iam-policy-binding smallstep-cas-test \
--member=serviceAccount:step-ca-sa@smallstep-cas-test.iam.gserviceaccount.com \ --member=serviceAccount:step-ca-sa@smallstep-cas-test.iam.gserviceaccount.com \
--role=roles/privateca.caManager --role=roles/privateca.certificateRequester
# Download the credentials.file # Download the credentials.file
gcloud iam service-accounts keys create credentials.json \ gcloud iam service-accounts keys create credentials.json \
--iam-account step-ca-sa@smallstep-cas-test.iam.gserviceaccount.com --iam-account step-ca-sa@smallstep-cas-test.iam.gserviceaccount.com