Google Identity Platform Tenant

This page shows how to write Terraform for Identity Platform Tenant and write them securely.

google_identity_platform_tenant (Terraform)

The Tenant in Identity Platform can be configured in Terraform with the resource name google_identity_platform_tenant. The following sections describe 5 examples of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L1
resource "google_identity_platform_tenant" "tenant_tf" {
  display_name = var.display_name
  project      = var.project_id
  allow_password_signup = var.allow_password_signup
  enable_email_link_signin = var.enable_email_link_signin
  disable_auth = var.disable_auth
main.tf#L1
resource "google_identity_platform_tenant" "tenant" {
  display_name          = "tenant"
  allow_password_signup = true
}
main.tf#L7
resource "google_identity_platform_tenant" "this" {
  allow_password_signup    = var.allow_password_signup
  disable_auth             = var.disable_auth
  display_name             = var.display_name
  enable_email_link_signin = var.enable_email_link_signin
  project                  = var.project
main.tf#L1
resource "google_identity_platform_tenant" "tenant" {
  display_name          = "tenant"
  allow_password_signup = true
}
main.tf#L1
resource "google_identity_platform_tenant" "tenant" {
  display_name          = "tenant"
  allow_password_signup = true
}

Review your Terraform file for Google best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Whether to allow email/password user authentication.

Whether authentication is disabled for the tenant. If true, the users under the disabled tenant are not allowed to sign-in. Admins of the disabled tenant are not able to manage its users.

Human friendly display name of the tenant.

Whether to enable email link user authentication.

  • id optional computed - string
  • name optional computed - string

The name of the tenant that is generated by the server

Explanation in Terraform Registry

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.

Frequently asked questions

What is Google Identity Platform Tenant?

Google Identity Platform Tenant is a resource for Identity Platform of Google Cloud Platform. Settings can be wrote in Terraform.

Where can I find the example code for the Google Identity Platform Tenant?

For Terraform, the extenda/tf-module-gcp-tenants, reubanj/GCP-terraform and niveklabs/google source code examples are useful. See the Terraform Example section for further details.

security-icon

Automate config file reviews on your commits

Fix issues in your infrastructure as code with auto-generated patches.