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.
resource "google_identity_platform_tenant" "tenant" {
display_name = "tenant"
allow_password_signup = true
}
The following arguments are supported:
display_name
-
(Required)
Human friendly display name of the tenant.allow_password_signup
-
(Optional)
Whether to allow email/password user authentication.
enable_email_link_signin
-
(Optional)
Whether to enable email link user authentication.
disable_auth
-
(Optional)
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.
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 format projects/{{project}}/tenants/{{name}}
name
-
The name of the tenant that is generated by the server
This resource provides the following Timeouts configuration options:
create
- Default is 20 minutes.update
- Default is 20 minutes.delete
- Default is 20 minutes.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 example:
import {
id = "projects/{{project}}/tenants/{{name}}"
to = google_identity_platform_tenant.default
}
When using the terraform import
command, Tenant can be imported using one of the formats above. For example:
$ terraform import google_identity_platform_tenant.default projects/{{project}}/tenants/{{name}}
$ terraform import google_identity_platform_tenant.default {{project}}/{{name}}
$ terraform import google_identity_platform_tenant.default {{name}}
This resource supports User Project Overrides.