Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Can't grant Cloud Functions Invoker to Firebase Functions


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?
4 1 771
1 REPLY 1

I have the exact same issue. Did you find a way to resolve it?

Top Labels in this Space
Top Solution Authors