I’m trying to deploy my Firebase Functions to a project which is part of an Organisation under a GSuite account.
The account I’m logged into the firebase CLI and console have Owner IAM permissions.
When I deployed my functions it said:
Unable to set the invoker for the IAM policy on the following functions:
You may not have the roles/functions.admin IAM role
I granted myself that role via the Google Cloud Admin for future new function deploys and went to add the Cloud Functions Invoker role to all the deployed functions.
But I can’t add it, it errors with:
Invalid state ”: The operation failed with precondition error. This is usually because the system is not in a state required for the operation’s execution.
What does this even mean and how do I solve it?