Closed ryanaross closed 1 year ago
Thank you Ryan for flagging this! We're looking into it.
Ryan: I ran the workflow from scratch and everything was working in my environment. So I was wondering if there's anything particular to your environment.
Since it failed at the step where the workflow tried to fetch the IAM policy on the parent of a project for a specific role (roles/resourcemanager.folderAdmin or roles/resourcemanager.organizationAdmin), I guess that the parent had neither role assigned.
I'll submit a PR to improve the logging to cover this case. In the meanwhile you could update the setWhatRolesToLookFor step to search for a role that exists on the parent resource, or grant someone roles/resourcemanager.organizationAdmin to see if that'll make this error go away.
I was able to reproduce the issue by looking for a fake role:
"Failed to find IAM policy results for the resource organizations/
The Cloud Scheduler is currently sending these parameters to the main workflow:
But it fails after 2 minutes with this error:
What sort of debugging can be done from here?