Guest User

Untitled

a guest
Nov 6th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. create 2 service account alice and bob along with service json, and activate the keys
  2.  
  3. ```
  4. gcloud auth list
  5. Credentialed Accounts
  6. ACTIVE ACCOUNT
  7. alice-364@pso-helmsman-cicd-infra.iam.gserviceaccount.com
  8. bob-106@pso-helmsman-cicd-infra.iam.gserviceaccount.com
  9. * my-owner-id@gflocks.com
  10. ```
  11.  
  12. ```
  13. from my owner account:
  14. gcloud config set account my-id@gflocks.com
  15. gsutil acl ch -r -u alice-364@pso-helmsman-cicd-infra.iam.gserviceaccount.com:R gs://pso-helmsman-cicd-infra-test/alice/
  16. gsutil acl ch -r -u bob-106@pso-helmsman-cicd-infra.iam.gserviceaccount.com:R gs://pso-helmsman-cicd-infra-test/bob/
  17. ```
Add Comment
Please, Sign In to add comment