I cant understand why use of IAM is so hard to comprehend. For example I am trying to create a schedule for a VM instance. When I add instance to a schedule I got:
Compute Engine System service account service-xxxxxxxxxx@compute-system.iam.gserviceaccount.com
needs to have [compute.instances.start,compute.instances.stop] permissions applied in order to perform this operation
I located the account in IAM but I dont know which role these things belong. Which role should I add to achieve this.
If I try gcloud
I get error:
gcloud projects add-iam-policy-binding general-123456 \
--member=user:service-xxxxxxxxxxxx@compute-system.iam.gserviceaccount.com --role=roles/compute.instances.start
ERROR: (gcloud.projects.add-iam-policy-binding) User [xxxxxx] does not have permission to access projects instance [general-123456:getIamPolicy] (or it may not exist): The caller does not have permission
I am the owner of the account and all the projects.
What should I do about it?
Generally speaking whats the procedure to deal with GCP permissions when they expressed like someth.the.other.etc
or someThingsNotRight
- how to identify right role name?