google_firebase_hosting_site

A Site represents a Firebase Hosting site.

To get more information about Site, see:

Example Usage - Firebasehosting Site Basic

resource "google_firebase_hosting_site" "default" {
  provider = google-beta
  project  = "my-project-name"
  site_id = "site-no-app"
}

Example Usage - Firebasehosting Site Full

resource "google_firebase_web_app" "default" {
  provider = google-beta
  project  = "my-project-name"
  display_name = "Test web app for Firebase Hosting"
}

resource "google_firebase_hosting_site" "full" {
  provider = google-beta
  project  = "my-project-name"
  site_id = "site-with-app"
  app_id = google_firebase_web_app.default.app_id
}

Argument Reference

The following arguments are supported:


Attributes Reference

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

Timeouts

This resource provides the following Timeouts configuration options:

Import

Site can be imported using any of these accepted formats:

In Terraform v1.5.0 and later, use an import block to import Site using one of the formats above. For example:

import {
  id = "projects/{{project}}/sites/{{site_id}}"
  to = google_firebase_hosting_site.default
}

When using the terraform import command, Site can be imported using one of the formats above. For example:

$ terraform import google_firebase_hosting_site.default projects/{{project}}/sites/{{site_id}}
$ terraform import google_firebase_hosting_site.default {{project}}/{{site_id}}
$ terraform import google_firebase_hosting_site.default sites/{{site_id}}
$ terraform import google_firebase_hosting_site.default {{site_id}}

User Project Overrides

This resource supports User Project Overrides.