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

Unable to Link Firebase Project to Google Cloud Project

 

@ links to members
Hi everyone! I need your help.

Issue:   After creating a Firebase project, a Google Cloud project was not automatically created, which I believe is usually done by default.

I manually created a Google Cloud project, but I could not find the option to link my Firebase project with this Google Cloud project. Specifically, in the "Project Settings" under the "Overview" tab, there is no "Link to Google Cloud Project" button available.

Could you kindly assist me in resolving this issue and provide guidance on how to link my Firebase project with my existing Google Cloud project?

Solved Solved
4 4 2,782
1 ACCEPTED SOLUTION

Hello @yong1,

Welcome to the Google Cloud Community!

Creating a Firebase project automatically sets up a Google Cloud project with the same name, eliminating the need for a separate linking process. This is why you may not see a "Link to Google Cloud Project" button.

Since your Firebase project is also a Google Cloud project, you can use the existing project instead of creating a new one. Here’s how to confirm:

Here's how to confirm:
1. Visit the Firebase console.
2. Note the project name at the top.
3. Go to the Google Cloud console.
4. Search for a project with the same name as your Firebase project.

If you find a matching project in the Google Cloud console, you're all set. You can use this project for any Google Cloud services you want to integrate with your Firebase project.

View solution in original post

4 REPLIES 4

Hello @yong1,

Welcome to the Google Cloud Community!

Creating a Firebase project automatically sets up a Google Cloud project with the same name, eliminating the need for a separate linking process. This is why you may not see a "Link to Google Cloud Project" button.

Since your Firebase project is also a Google Cloud project, you can use the existing project instead of creating a new one. Here’s how to confirm:

Here's how to confirm:
1. Visit the Firebase console.
2. Note the project name at the top.
3. Go to the Google Cloud console.
4. Search for a project with the same name as your Firebase project.

If you find a matching project in the Google Cloud console, you're all set. You can use this project for any Google Cloud services you want to integrate with your Firebase project.

Thank you very much. I was just looking at "Recent Projects" and didn't see the "All" tab existed. It was a silly mistake... Sorry for the inconvenience. Thanks for your reply!

I have created a project from firebase console. 
but it not being shown in google cloud projects. 
all other projects are being shown, except one project. 
what might be the issue ? 

I am trying to Create a Firebase project

firebase login (successful with my GCP account)

I have given Firebase Admin role to the user

firebase init hosting

I have tried two options

one is to create a brand new project in Firebase which essentially creates Google Cloud Platform Project which is successful. I can see that project in GCP. The it tries to Add Firebase Resources to Google Cloud Platform project and it fails

POST https://firebase.googleapis.com/v1beta1/projects/frontend:addFirebase [none]

[debug] [2024-12-09T15:52:03.575Z] <<< [apiv2][status] POST https://firebase.googleapis.com/v1beta1/projects/frontend:addFirebase 403

[debug] [2024-12-09T15:52:03.575Z] <<< [apiv2][body] POST https://firebase.googleapis.com/v1beta1/projects/frontend:addFirebase {"error":{"code":403,"message":"The caller does not have permission","status":"PERMISSION_DENIED"}}

[debug] [2024-12-09T15:52:03.576Z] Request to https://firebase.googleapis.com/v1beta1/projects/frontend:addFirebase had HTTP Error: 403, The caller does not have permission

Second is tried using an exisiting Google Cloud Project it shows the list of projects and I selected a project and it also fails with similar error 

POST https://firebase.googleapis.com/v1beta1/projects/ai-july2024:addFirebase [none]

[debug] [2024-12-09T05:30:25.081Z] <<< [apiv2][status] POST https://firebase.googleapis.com/v1beta1/projects/ai-july2024:addFirebase 403

[debug] [2024-12-09T05:30:25.082Z] <<< [apiv2][body] POST https://firebase.googleapis.com/v1beta1/projects/ai-july2024:addFirebase {"error":{"code":403,"message":"The caller does not have permission","status":"PERMISSION_DENIED"}}

[debug] [2024-12-09T05:30:25.083Z] Request to https://firebase.googleapis.com/v1beta1/projects/ai-july2024:addFirebase had HTTP Error: 403, The caller does not have permission

 

Top Labels in this Space
Top Solution Authors