subcategory | page_title | description |
---|---|---|
Firebase |
Google: google_firebase_project_location |
Sets the default Google Cloud Platform (GCP) resource location for the specified FirebaseProject. |
Sets the default Google Cloud Platform (GCP) resource location for the specified FirebaseProject. This method creates an App Engine application with a default Cloud Storage bucket, located in the specified locationId. This location must be one of the available GCP resource locations. After the default GCP resource location is finalized, or if it was already set, it cannot be changed. The default GCP resource location for the specified FirebaseProject might already be set because either the GCP Project already has an App Engine application or defaultLocation.finalize was previously called with a specified locationId. Any new calls to defaultLocation.finalize with a different specified locationId will return a 409 error.
~> 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 ProjectLocation, see:
- API documentation
- How-to Guides
resource "google_project" "default" {
provider = google-beta
project_id = "tf-test%{random_suffix}"
name = "tf-test%{random_suffix}"
org_id = "123456789"
}
resource "google_firebase_project" "default" {
provider = google-beta
project = google_project.default.project_id
}
resource "google_firebase_project_location" "basic" {
provider = google-beta
project = google_firebase_project.default.project
location_id = "us-central"
}
The following arguments are supported:
location_id
- (Required) The ID of the default GCP resource location for the Project. The location must be one of the available GCP resource locations.
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 formatprojects/{{project}}
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.delete
- Default is 20 minutes.
ProjectLocation can be imported using any of these accepted formats:
$ terraform import google_firebase_project_location.default projects/{{project}}
$ terraform import google_firebase_project_location.default {{project}}
This resource supports User Project Overrides.