Google Firebase Web App

This page shows how to write Terraform for Firebase Web App and write them securely.

google_firebase_web_app (Terraform)

The Web App in Firebase can be configured in Terraform with the resource name google_firebase_web_app. The following sections describe 5 examples of how to use the resource and its parameters.

Example Usage from GitHub
resource "google_firebase_web_app" "basic" {
  provider = google-beta

  project      = var.project
  display_name = "Family Tree App"
resource "google_firebase_web_app" "app" {
  provider     = google-beta
  display_name = "FirebaseApp"

  depends_on = [
resource "google_firebase_web_app" "ww2020" {
  provider = google-beta
  project = data.google_project.winter-workshop.number
  display_name = "Winter Workshop 2020"
  depends_on = [
resource "google_firebase_web_app" "basic" {
  provider     = google-beta
  project      = var.project-id
  display_name = "dream-11-project"

resource "google_firebase_web_app" "basic" {
  provider = google-beta
  project = data.google_project.default.project_id
  display_name = "petermalina DEV"

  depends_on = [google_firebase_project.default]

Review your Terraform file for Google best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).


The following arguments are supported:

  • display_name - (Required) The user-assigned display name of the App.

  • project - (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

In addition to the arguments listed above, the following computed attributes are exported:

  • id - an identifier for the resource with format [[name]]

  • name - The fully qualified resource name of the App, for example: projects/projectId/webApps/appId

  • app_id - Immutable. The globally unique, Firebase-assigned identifier of the App. This identifier should be treated as an opaque token, as the data format is not specified.

Explanation in Terraform Registry

A Google Cloud Firebase web application instance

Warning: This resource is in beta, and should be used with the terraform-provider-google-beta provider. See Provider Versions for more details on beta resources. To get more information about WebApp, see:

Frequently asked questions

What is Google Firebase Web App?

Google Firebase Web App is a resource for Firebase of Google Cloud Platform. Settings can be wrote in Terraform.

Where can I find the example code for the Google Firebase Web App?

For Terraform, the serchtul/tree-app-backend, synaptic-cl/SYNAPTIC-bot_monitor and salzr/ww2020 source code examples are useful. See the Terraform Example section for further details.


Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.