» google_firebase_web_app_config

A Google Cloud Firebase web application configuration

To get more information about WebApp, see:

» Argument Reference

The following arguments are supported:

  • web_app_id - (Required) the id of the firebase web app

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

» Attributes Reference

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

  • api_key - The API key associated with the web App.

  • auth_domain - The domain Firebase Auth configures for OAuth redirects, in the format: projectId.firebaseapp.com

  • database_url - The default Firebase Realtime Database URL.

  • storage_bucket - The default Cloud Storage for Firebase storage bucket name.

  • location_id - The ID of the project's default GCP resource location. The location is one of the available GCP resource locations. This field is omitted if the default GCP resource location has not been finalized yet. To set your project's default GCP resource location, call defaultLocation.finalize after you add Firebase services to your project.

  • messaging_sender_id - The sender ID for use with Firebase Cloud Messaging.

  • measurement_id - The unique Google-assigned identifier of the Google Analytics web stream associated with the Firebase Web App. Firebase SDKs use this ID to interact with Google Analytics APIs. This field is only present if the App is linked to a web stream in a Google Analytics App + Web property. Learn more about this ID and Google Analytics web streams in the Analytics documentation. To generate a measurementId and link the Web App with a Google Analytics web stream, call projects.addGoogleAnalytics.