I'm trying to migrate my firestore database to a new location, since google added a new Canadian region after we created our database in US-West.
The standard answer is you can't change the location of firestore after creating it. The only way I've heard is possible is to create a completely new project. Obviously that has many down-sides.
However, I was wondering if its possible to reset and recreate firestore in the desired region within the original project as a work-around? That way I wouldn't need to create a new project.
The steps would be as follows:
- Export firestore data to google cloud storage
- Move exported data to a new storage bucket in the desired region (You can't run firestore import across regions)
- Reset firestore
- Recreate firestore in the desired region
- Import the exported data into firestore
CodePudding user response:
For now it is not possible to change the region for a Firestore instance already created as mentioned in the docs and you may need to migrate all the data to the new project.
Anyway there is already a Feature Request so the location can be changed at any time in the same project