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

How to add a Firebase project to an existing GCP project? (using terraform)

RIRUa
New Member

## I can't create a firebase project...why?

When I tried to add Firebase to an existing project, I got the following error:

---

Error creating Project: googleapi: Error 403: The caller does not have permission

---

 

## Predicted Cause

I lack permissions on my project but I don't know what I'm missing.

Currently, I have the following permissions, but I have not been able to check the organizational policy.

  • roles/firebase.admin
  • roles/owner

Regarding Firebase, I tried adding Viewer and Develop Admin permissions, but it didn't work.

So I would like to know what might be missing. Also, these are things I have come across while using terraform.

0 1 659
1 REPLY 1

Hi @RIRUa,

Welcome to Google Cloud Community!

It seems that you are encountering a problem with permissions when trying to add Firebase to your project. The googleapi: Error 403: The caller does not have permission error usually means that you might be missing some required permissions.

Here are a few suggestions to troubleshoot:

  • Check Permissions: In addition to your current roles, ensure you have resourcemanager.projects.create, serviceusage.services.enable, and firebase.projects.update permissions. These are crucial for enabling Firebase.
  • Organizational Policies: There might be policies in place that block adding Firebase. It’s a good idea to reach out to someone with the roles/orgpolicy.policyViewer role to see if that’s the case.
  • Service Usage Admin Role: If possible, try adding the roles/serviceusage.serviceUsageAdmin role. This might help with enabling the necessary APIs.
  • Communicate with your administrator: If you are unable to resolve the issue, reach out to your Org administrator for assistance. They are able to modify permissions or policies as necessary.

I hope the above information is helpful.