I created a cloud function but when I trigger the HTTPs I get:
Your client does not have permission to get URL```
I want the function to be executable by anyone and so I try to add a new principal “allUsers” and Cloud function Invoker but the error I get:
```IAM policy update failed
Invalid state 'projects/xxx': The operation failed with precondition error. This is usually because the system is not in a state required for the operation's execution
Request ID: 1403035282898553420```
Any idea?
Thanks
I think the salient point is that for a gen2 cloud function, you may need to use Cloud Run Invoker vs Cloud Function Invoker, probably because gen2 CFs sit on top of Cloud Run.