Get started using Firebase with an existing Google Cloud project
Stay organized with collectionsSave and categorize content based on your preferences.
A Firebase project is aGoogle Cloudproject that has some additional
Firebase-specific configurations and services enabled. This is commonly called
"adding Firebase" to aGoogle Cloudproject. This page describeshow to "add Firebase", along with somefrequently asked questions (FAQs).
When you add Firebase to aGoogle Cloudproject, Firebase automatically enables
several APIs and creates service accounts to simplify the use of all Firebase
services and interfaces. Firebase also adds afirebase:enabledlabelto your project within theLabelspageof theGoogle Cloudconsole. Learn more details aboutwhat happens when you "add Firebase".
Relationship between a Firebase project and aGoogle Cloudproject
You can interact with the project using theFirebaseCLI, thegcloud CLI,
and any Terraform resource from Google.
You can use products and APIs from both Firebase andGoogle Cloudin the
project.
IAM permissions and rolesfor the project are
shared across Firebase andGoogle Cloud. Any access a project member (that is,
a principal) has to yourGoogle Cloudproject will also apply to your Firebase
project (and vice-versa).
Billingfor the project is shared across Firebase andGoogle Cloud. If billing is enabled on yourGoogle Cloudproject, then your
Firebase project will be on Firebase's pay-as-you-go Blaze pricing plan.
Unique identifiers for the project (likeproject numberandproject ID)
are shared across Firebase andGoogle Cloud.
Anyresource hierarchyapplied to yourGoogle Cloudproject (for example, organization, folders,
etc.) will also apply to your Firebase project.
Deleting the project deletes it across Firebase andGoogle Cloud.
Deleting or modifying a resource or data within the project applies across
Firebase andGoogle Cloud.
How to add Firebase to an existingGoogle Cloudproject
You can "add Firebase" to an existingGoogle Cloudproject using any of the
following options. Make sure that you have therequired permissions to add Firebaseto theGoogle Cloudproject.
Be aware that once you "add Firebase" to an existingGoogle Cloudproject, it
can't be undone (that is, you can'tfully"remove Firebase" from theGoogle Cloudproject). Learn more in thisFAQ.
Firebaseconsole
Sign into theFirebaseconsolewith the
account that gives you access to the existingGoogle Cloudproject.
Click the button to create a new Firebase project.
At the bottom of the page, clickAdd Firebase to Google Cloud project.
In the text field, start entering theproject nameof the existing
project, and then select the project from the displayed list.
Note that you'll need the resource name of your project to make this call.
For detailed instructions, seeAdd Firebase services to your projectin the Firebase guide: "Set up and manage a Firebase project using the
Management REST API". Make sure to follow all the instructions in theBefore you beginsection of that guide.
Terraform
Enable the Firebase Management API (firebase.googleapis.com) in the
existingGoogle Cloudproject.
Enable Firebase services for the project using thegoogle_firebase_projectresource.
Is accepting the Firebase Terms of Service required to start using Firebase?
In order to access and use all capabilities of Firebase in aGoogle Cloudproject, you need to accept theFirebase Terms of Service. You also need to accept the Firebase Terms
in order to "add Firebase" to an existingGoogle Cloudproject.
You only need to accept the Firebase Terms once for your Google Accountno
matter how many projects you have access to. When you accept the terms, you're
accepting them only for your Google Account; acceptance isnotat the
project-level for all project members.
You can accept the Firebase Terms through theFirebaseconsoleusing any of
the following options. When prompted, accept the Terms.
Create a new Firebase project using theFirebaseconsole.
Open an existing Firebase project in theFirebaseconsole (for example,
someone has invited you to become a project member (that is, a principal)
on the project).
Open an existingGoogle Cloudin theFirebaseconsole and"add Firebase"to it.
Which permissions are required to "add Firebase"?
To "add Firebase" to an existingGoogle Cloudproject, a project member (that
is, a principal) must have the following IAM permissions:
firebase.projects.update
resourcemanager.projects.get
serviceusage.services.enable
serviceusage.services.get
The IAM roles of Editor and Owner contain these permissions by default.
Is adding thefirebase:enabledlabel sufficient to add Firebase?
However, just manually adding thefirebase:enabledlabel to your list of
project labels does NOT enable Firebase-specific configurations and services for
yourGoogle Cloudproject. To do that, you need toadd Firebaseusing theFirebaseconsole (or, for
advanced use cases, using theFirebaseCLI, Firebase Management REST API, or
Terraform).
What happens when you "add Firebase" to an existingGoogle Cloudproject?
A Firebase project is aGoogle Cloudproject that has some additional
Firebase-specific configurations and services enabled. So, when you
"add Firebase" to an existingGoogle Cloudproject, Firebase takes the following
actions to simplify the use of all Firebase services and interfaces:
After you "add Firebase" to an existingGoogle Cloudproject, it can't be undone
(that is, you can'tfully"remove Firebase" from theGoogle Cloudproject).
The process of "adding Firebase" enables APIs and backend services that may be
used for otherGoogle Cloudfeatures. Disabling all these enabled services could
cause unexpected and unintended consequences due to dependencies.
Can I block "adding Firebase" for an existingGoogle Cloudproject?
While you can't actually block the possibility of "adding Firebase" to an
existingGoogle Cloudproject, you can do the following:
Limit the project members (that is, principals) that have the IAM
permissionfirebase.projects.update, which is required to "add Firebase".
Next steps
Check out the following resources for learning more about Firebase projects:
Understand Firebase projects—
provides brief overviews of several important concepts about Firebase
projects, including their relationship withGoogle Cloudand the basic
hierarchy of a project and its apps and resources.
General best practices for setting up Firebase projects—
provides general, high-level best practices for setting up Firebase projects
and registering your apps with a project so that you have a clear
development workflow that uses distinct environments.
Get started using Firebase in your mobile and web apps by registering your
apps with your Firebase project and connecting them to Firebase:iOS+|Android|Web|Flutter|Unity|C++.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-05 UTC."],[],[],null,[]]