Learn about locations for products and resources in your project Stay organized with collections Save and categorize content based on your preferences.
Locations are set per product or per resource, and in some cases, per group of products. Usually, though, you set the location for each product and each resource independently from the others.
Note thatsome Firebase products and resources don't support location selection. Also, you can optionally set anorganization-level location restriction for products and resources that support location selection.
Products or resources that require a location setting
Several products or resources require a location setting.
| Product | Default location | Additional information |
|---|---|---|
| Firebase AI Logic |
| This location is where you access the model. |
| Google Analytics | No default location. You must set this location. | This location is theAnalytics reporting location2, which represents the country or region of your organization. YourAnalytics reporting location, in turn, sets the currency for revenue reporting. |
| Firebase App Hosting | No default location. You must set this location for each backend. | This location is whereApp Hosting deployment creates each of your backend resources. Each backend can be in a different location. |
| Firebase Data Connect | No default location. You must set the location for each instance. | Each instance can be in a different location. |
| Cloud Firestore1 | No default location. You must set the location for each instance. | Each instance can be in a different location. |
| Firebase Realtime Database | No default location. You must set the location for each instance. | Each instance can be in a different location. |
| Cloud Storage for Firebase1 | No default location. You must set the location for each bucket. | Each bucket can be in a different location. |
| Cloud Functions for Firebase1 | If location not set, the default region isus-central1 | Each function can be in a different location. |
1 Depending on when you initially started using these products inyour project, there can be location dependencies between these products. Youmight see this dependency referred to as the"location for defaultGoogle Cloud resources". Learn more about thislocation dependency.
2 YourAnalytics reporting location doesnot affect whereGoogle may process and storecustomer data for Firebase.
Set a location for a product or its resources
For a few products, you set the location at the product level. However, for mostproducts, you set the location at the resource level (for example, for eachCloud Storage bucket or each function).
| Product | When and how to set the location | Available locations |
|---|---|---|
| Firebase AI Logic |
| Firebase AI Logic locations |
| Google Analytics | When you enableGoogle Analytics in your Firebase project in theFirebase console, you're prompted to select an Analytics reporting location. You should select a country or region that represents the location of your organization. If you're a project Owner or Editor, you can later edit the time zone and the currency for your Analytics reporting location; go to yourGoogle Analytics settings, then go to theReporting pane. | See list in theGoogle Analytics settings >Reporting pane. |
| Firebase App Hosting | When you create anApp Hosting backend, you're prompted to select a location. You can use theFirebase console, REST API, orFirebase CLI to create a backend. | App Hosting locations |
| Firebase Data Connect | When you provision aData Connect service instance, you set its locations. You also set the location of the associatedGoogle Cloud SQL instance. You can use theFirebase console orFirebase CLI to provision an instance. | Data Connect service andCloud SQL instance locations |
| Cloud Firestore1 | When you provision aCloud Firestore database instance, you set its location. You can use theFirebase console, REST API,Firebase CLI, or Terraform to provision an instance. | Cloud Firestore locations |
| Firebase Realtime Database | When you provision theRealtime Database instance, you set its location. You can use theFirebase console, REST API,Firebase CLI, or Terraform to provision an instance. | Realtime Database locations |
| Cloud Storage for Firebase1 | When you provision theCloud Storage bucket, you set its location. You can use theFirebase console, REST API, or Terraform to provision a bucket. | Cloud Storage for Firebase locations |
| Cloud Functions for Firebase1 | When you write a function, you can optionally set its region. If you don't specify a location, the default region is | Cloud Functions for Firebase locations |
1 Depending on when you initially started using these products inyour project, there can be location dependencies between these products. Youmight see this dependency referred to as the"location for defaultGoogle Cloud resources". Learn more about thislocation dependency.
View location settings
| Product | Where to view the location setting |
|---|---|
| Firebase AI Logic |
|
| Google Analytics | In theFirebase console, go to settingsProject settings >Integrations >Google Analytics. Click the account number to open yourGoogle Analytics account, and then go to theAdmin panel to find your account's location information. |
| Firebase App Hosting |
|
| Firebase Data Connect | In theFirebase console, go to theData Connect page to view the list of your database instances and their locations. |
| Cloud Firestore | In theFirebase console, go to theCloud FirestoreData tab to view the list of your database instances and their locations. |
| Firebase Realtime Database | In theFirebase console, go to theRealtime DatabaseData tab to view the list of your database instances and their locations. |
| Cloud Storage for Firebase | In theFirebase console, go to theCloud StorageFiles tab to view the list of your buckets and their locations. |
| Cloud Functions for Firebase |
|
Possible location dependencies due to "location for default Google Cloud resources"
The "location for defaultGoogle Cloud resources" is the location settingfor any project resources associated with GoogleApp Engine, including thefollowing:
- defaultCloud Firestore database instance
- defaultCloud Storage for Firebase bucket with the name format of
*.appspot.com - GoogleCloud Scheduler used specifically with 1st gen scheduled functions
*.firebasestorage.appThis "location for defaultGoogle Cloud resources" is an immutablesetting. Also, when you set the location for one of the associated resources,you indirectly set the location for all of them due to their common associationwithApp Engine.
However, with many changes to the Firebase andGoogle Cloud ecosystem overthe years, the associations of resources toApp Engine have beenchanging. Most notably, starting*.firebasestorage.app
*.firebasestorage.appHere are the details of what changed in the possiblelocation dependencies:
Starting
October 30, 2024 ,if thedefaultCloud Firestore instance and thedefaultCloud Storage for Firebase bucket arenot yet provisioned:Provisioning the defaultCloud Firestore instance sets the locationfor any futureApp Engine app provisioned in the project.However, it doesnot dictate the location of the futuredefaultCloud Storage bucket.
Provisioning the defaultCloud Storage bucketno longer provisionsanApp Engine app. Thus, the location of thedefaultCloud Storage bucket doesnot dictate the location of thefuture defaultCloud Firestore instance.
Starting
October 30, 2024 ,if the defaultCloud Firestore instance hasalready been provisioned, but thedefaultCloud Storage for Firebase bucket hasnot been provisioned:- The existing defaultCloud Firestore instance doesnot dictate thelocation of the future defaultCloud Storage bucket(
).*.firebasestorage.app
- The existing defaultCloud Firestore instance doesnot dictate thelocation of the future defaultCloud Storage bucket(
Starting
October 30, 2024 ,if thedefaultCloud Storage for Firebase bucket hasalready beenprovisioned (specifically, the bucket), but thedefaultCloud Firestore instance hasnot been provisioned:*.appspot.com- Back when the defaultCloud Storage bucket(
) was provisioned,anApp Engine app wasalso provisioned, and thus the locationof the future defaultCloud Firestore instance was set at that time.Even if you delete the*.appspot.com bucket, youcan't delete theApp Engine app, so the location setting of thefuture defaultCloud Firestore instance is already set.*.appspot.com
- Back when the defaultCloud Storage bucket(
If you used1st gen scheduled functions, then their location is set to thelocation for defaultGoogle Cloud resources. This is becauseCloud Scheduler andApp Engine previously had an association witheach other. Also, if you set up 1st gen scheduled functionsbeforeprovisioning other resources that shared this location setting, then you settheir location, too.
Next steps
- For more information about building applications to meet your latency,availability, and durability requirements, refer toGeography and Regions.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-03 UTC.