Configure a Firestore database in App Design Center

Firestore is a flexible, scalable database for mobile, web, and server development from Firebase and Google Cloud. This document describes the connections and parameters you can configure when using App Design Center to create a Firestore database. The configuration parameters are based on the terraform-google-firestore Terraform module.

Component connections

The following table includes the components that you can connect to a Firestore database, and the resulting updates to your application and its generated Terraform code.

Component
Description
Background information
  • Adds the roles/datastore.user IAM role to the Compute Engine instance template's service account.
  • Adds the Firestore database ID to the Compute Engine instance template's metadata field.
  • Adds the roles/datastore.user IAM role to the Compute Engine instance template's service account.
  • Adds the Firestore database ID to the Cloud Run service's environment variables.

Required configuration parameters

If your template includes a Firestore component, you must configure the following parameters before you deploy.

Parameter name Description and constraint information Background information
Project ID
The project where you want to deploy the Firestore instance. Creating and managing projects
Database ID
The ID of the Firestore database. Defaults to (default) . Database ID
Region
The location where the Firestore database is deployed. Locations

Optional configuration parameters

The following parameters are optional. To display advanced parameters, in the Configurationarea, select Show advanced fields.

Feature
Parameter name
Description and constraint information
Background information
Delete Protection State
Deletion Policy
The deletion policy to be enforced when the Firestore Database is destroyed using Terraform.
Backup Schedule
Weekly Recurrence Day
day
Weekly Recurrence Retention
Daily Recurrence Retention
Composite Index
Index ID
The ID of the composite index.
Collection
The collection ID.
Query Scope
Api Scope
Density
Multikey
Field Path
Order
Array Config
Vector Dimension
Field Configuration
Collection
The collection ID.
Field
TTL Enabled
Ascending Index Query Scope
Descending Index Query Scope
Array Index Query Scope
Design a Mobile Site
View Site in Mobile | Classic
Share by: