Search code examples
firebasegoogle-cloud-platformgoogle-cloud-firestoregoogle-cloud-functionsgoogle-cloud-iam

Which Roles are needed in IAM in order to do a firebase deploy


I'm trying to add the needed roles for a CI pipeline to automatically deploy to firebase (by running firebase deploy.

The roles I've added so far are:

  • API Keys viewer
  • Artifact registry writer
  • Cloud build Service Account
  • Cloud Functions Admin
  • Cloud Run Viewer
  • Firebase App distribution admin
  • Firebase Authentication admin
  • firebase hosting admin
  • firebase rules admin
  • service account user
  • service usage admin

Honnestly at this point I'm just adding what sounds good, as the error message is not helpful:

There was an issue deploying your functions. Verify that your project has a Google App Engine instance setup at https://console.cloud.google.com/appengine and try again. If this issue persists, please contact support.

It works when adding the Owner permission, so this is a permission issue.


Solution

  • As you want to deploy the entire project, the most applicable role would be Firebase Admin.

    I use it in portuguese, so the translation in english may be different.