googleFirebaseProject
A Google Cloud Firebase instance. This enables Firebase resources on a given google project. Since a FirebaseProject is actually also a GCP Project, a FirebaseProject uses underlying GCP identifiers (most importantly, the projectId) as its own for easy interop with GCP APIs. Once Firebase has been added to a Google Project it cannot be removed.
\~> 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 Project, see:
- API documentation
- How-to Guides
- Official Documentation
Example Usage - Firebase Project Basic
resource "google_project" "default" {
provider = google-beta
project_id = "tf-test%{random_suffix}"
name = "tf-test%{random_suffix}"
org_id = "123456789"
labels = {
"firebase" = "enabled"
}
}
resource "google_firebase_project" "default" {
provider = google-beta
project = google_project.default.project_id
}
Argument Reference
The following arguments are supported:
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 computed attributes are exported:
-
id
- an identifier for the resource with formatprojects/{{project}}
-
projectNumber
- The number of the google project that firebase is enabled on. -
displayName
- The GCP project display name
Timeouts
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.delete
- Default is 20 minutes.
Import
Project can be imported using any of these accepted formats:
$ terraform import google_firebase_project.default projects/{{project}}
$ terraform import google_firebase_project.default {{project}}
User Project Overrides
This resource supports User Project Overrides.