Products or resources that require a location setting
Several products or resources require a location setting.
- For Gemini Developer API : No location selection possible; always global.
- For Vertex AI
Gemini API
: If location not set, the default
region is
us-central1
You must set this location.
You must set this location for each backend.
Each backend can be in a different location.
You must set the location for each instance.
You must set the location for each instance.
You must set the location for each instance.
You must set the location for each bucket.
us-central1
1 Depending on when you initially started using these products in your project, there can be location dependencies between these products. You might see this dependency referred to as the "location for default Google Cloud resources". Learn more about this location dependency .
2 Your Analytics reporting location does not affect where Google may process and store customer 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 most products, you set the location at the resource level (for example, for each Cloud Storage bucket or each function).
- For Gemini Developer API : No location selection possible; always global.
- For Vertex AI
Gemini API
: When you initialize the Vertex AI
backend service in your codebase, you can optionally
specify a location for where to access the model.
If you don't specify a location, the default region isus-central1
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 your Google Analytics settings , then go to the Reporting pane.
You can use the Firebase console or Firebase CLI to provision an instance.
You can use the Firebase console, REST API, Firebase CLI, or Terraform to provision an instance.
You can use the Firebase console, REST API, or Terraform to provision a bucket.
If you don't specify a location, the default region is us-central1
1 Depending on when you initially started using these products in your project, there can be location dependencies between these products. You might see this dependency referred to as the "location for default Google Cloud resources". Learn more about this location dependency .
View location settings
- For Gemini Developer API : No location selection possible; always global.
- For Vertex AI
Gemini API
: In your codebase, look for the
initialization of the Vertex AI
backend service. If a location
isn't specified, then the default location is
us-central1
- In the Firebase console, go to the App Hosting page to view the list of your backends and their locations.
- To view the location for a specific backend, you can
use the Firebase
CLI command
firebase apphosting:backends:get --project PROJECT_ID BACKEND_ID
- Scheduled functions: In the Google Cloud console, go to Cloud Scheduler to view the list of topics for each job and function. The location is the last segment in the name of the topic.
- Non-scheduled functions: In your function's source code, look for a
region
parameter. If a region isn't specified, then the default location isus-central1
Possible location dependencies due to "location for default Google Cloud resources"
The "location for default Google Cloud resources" is the location setting for any project resources associated with Google App Engine , including the following:
- default Cloud Firestore database instance
- default Cloud Storage
for Firebase bucket with the name format of
*.appspot.com
- Google Cloud Scheduler used specifically with 1st gen scheduled functions
This "location for default Google Cloud resources" is an immutable setting. 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 association with App Engine .
However, with many changes to the Firebase and Google Cloud
ecosystem over
the years, the associations of resources to App Engine
have been
changing. Most notably, starting *.firebasestorage.app
Here are the details of what changed in the possible location dependencies:
-
Starting
October 30, 2024 , if the default Cloud Firestore instance and the default Cloud Storage for Firebase bucket are not yet provisioned:-
Provisioning the default Cloud Firestore instance sets the location for any future App Engine app provisioned in the project. However, it does not dictate the location of the future default Cloud Storage bucket.
-
Provisioning the default Cloud Storage bucket no longer provisions an App Engine app. Thus, the location of the default Cloud Storage bucket does not dictate the location of the future default Cloud Firestore instance.
-
-
Starting
October 30, 2024 , if the default Cloud Firestore instance has already been provisioned, but the default Cloud Storage for Firebase bucket has not been provisioned:- The existing default Cloud Firestore
instance does not
dictate the
location of the future default Cloud Storage
bucket
(
*.firebasestorage.app
- The existing default Cloud Firestore
instance does not
dictate the
location of the future default Cloud Storage
bucket
(
-
Starting
October 30, 2024 , if the default Cloud Storage for Firebase bucket has already been provisioned(specifically, the*.appspot.com
- Back when the default Cloud Storage
bucket
(
*.appspot.com
*.appspot.com
- Back when the default Cloud Storage
bucket
(
If you used 1st gen scheduled functions, then their location is set to the location for default Google Cloud resources. This is because Cloud Scheduler and App Engine previously had an association with each other. Also, if you set up 1st gen scheduled functions before provisioning other resources that shared this location setting, then you set their location, too.
Next steps
- For more information about building applications to meet your latency, availability, and durability requirements, refer to Geography and Regions .