tests.system.providers.google.cloud.gcs.example_firestore
¶
Example Airflow DAG that shows interactions with Google Cloud Firestore.
Prerequisites¶
This example uses two Google Cloud projects:
GCP_PROJECT_ID
- It contains a bucket and a firestore database.G_FIRESTORE_PROJECT_ID
- it contains the Data Warehouse based on the BigQuery service.
Saving in a bucket should be possible from the G_FIRESTORE_PROJECT_ID
project.
Reading from a bucket should be possible from the GCP_PROJECT_ID
project.
The bucket and dataset should be located in the same region.
If you want to run this example, you must do the following:
Create Google Cloud project and enable the BigQuery API
Create the Firebase project
Create a bucket in the same location as the Firebase project
Grant Firebase admin account permissions to manage BigQuery. This is required to create a dataset.
Create a bucket in Firebase project and
Give read/write access for Firebase admin to bucket to step no. 5.
Create collection in the Firestore database.