Tenant
Tenant configuration in a multi-tenant project. You must enable the Google Identity Platform in the marketplace prior to using this resource. You must enable multi-tenancy via the Cloud Console prior to creating tenants.
Example Usage
Identity Platform Tenant Basic
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.identityplatform.Tenant;
import com.pulumi.gcp.identityplatform.TenantArgs;
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 tenant = new Tenant("tenant", TenantArgs.builder()
.allowPasswordSignup(true)
.displayName("tenant")
.build());
}
}Content copied to clipboard
Import
Tenant can be imported using any of these accepted formats* projects/{{project}}/tenants/{{name}} * {{project}}/{{name}} * {{name}} In Terraform v1.5.0 and later, use an import block to import Tenant using one of the formats above. For exampletf import { id = "projects/{{project}}/tenants/{{name}}" to = google_identity_platform_tenant.default }
$ pulumi import gcp:identityplatform/tenant:Tenant When using the [`terraform import` command](https://developer.hashicorp.com/terraform/cli/commands/import), Tenant can be imported using one of the formats above. For exampleContent copied to clipboard
$ pulumi import gcp:identityplatform/tenant:Tenant default projects/{{project}}/tenants/{{name}}Content copied to clipboard
$ pulumi import gcp:identityplatform/tenant:Tenant default {{project}}/{{name}}Content copied to clipboard
$ pulumi import gcp:identityplatform/tenant:Tenant default {{name}}Content copied to clipboard