I'm making a voice recognition program, but I can't seem to be able to send a request to the Cloud. Whenever I try:
gcloud projects add-iam-policy-binding [PROJECT_ID] --member "serviceAccount:[SEVICE-ACCOUNT-NAME]@[PROJECT_ID].iam.gserviceaccount.com" --role "roles/owner"
I get this:
ERROR: (gcloud.projects.add-iam-policy-binding) INVALID_ARGUMENT: Request contains an invalid argument.
Can anybody help?
As specified in the documentation, you should write the command like:
gcloud projects add-iam-policy-binding YOUR_PROJECT_ID --member "serviceAccount:NAME@YOUR_PROJECT_ID.iam.gserviceaccount.com" --role "roles/owner"
This should work for you!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With