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
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
resource "google_identity_platform_tenant" "tenant" {
display_name = "tenant"
allow_password_signup = true
}
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
resource "google_identity_platform_tenant" "tenant" {
display_name = "tenant"
allow_password_signup = true
}
resource "google_identity_platform_tenant" "tenant" {
display_name = "tenant"
allow_password_signup = true
}
Parameters
-
allow_password_signup
optional - bool
Whether to allow email/password user authentication.
-
disable_auth
optional - bool
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.
-
display_name
required - string
Human friendly display name of the tenant.
-
enable_email_link_signin
optional - bool
Whether to enable email link user authentication.
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.