Project Location Args
Warning:
gcp.firebase.ProjectLocation
is deprecated in favor of explicitly configuringgcp.appengine.Application
andgcp.firestore.Database
. This resource will be removed in the next major release of the provider. 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. To get more information about ProjectLocation, see:
How-to Guides
Example Usage
Firebase Project Location Basic
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.Project;
import com.pulumi.gcp.organizations.ProjectArgs;
import com.pulumi.gcp.firebase.Project;
import com.pulumi.gcp.firebase.ProjectArgs;
import com.pulumi.gcp.firebase.ProjectLocation;
import com.pulumi.gcp.firebase.ProjectLocationArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var defaultProject = new Project("defaultProject", ProjectArgs.builder()
.projectId("my-project")
.orgId("123456789")
.labels(Map.of("firebase", "enabled"))
.build(), CustomResourceOptions.builder()
.provider(google_beta)
.build());
var defaultFirebase_projectProject = new Project("defaultFirebase/projectProject", ProjectArgs.builder()
.project(defaultProject.projectId())
.build(), CustomResourceOptions.builder()
.provider(google_beta)
.build());
var basic = new ProjectLocation("basic", ProjectLocationArgs.builder()
.project(defaultFirebase / projectProject.project())
.locationId("us-central")
.build(), CustomResourceOptions.builder()
.provider(google_beta)
.build());
}
}
Import
ProjectLocation can be imported using any of these accepted formats
$ pulumi import gcp:firebase/projectLocation:ProjectLocation default projects/{{project}}
$ pulumi import gcp:firebase/projectLocation:ProjectLocation default {{project}}