Skip to main content

okustera_tenant (Resource)

The okustera_tenant resource provisions and manages Okustera tenant projects (Keystone projects). In Okustera's multi-tenant architecture, a tenant project forms the boundary for RBAC, resource quotas, Ceph S3 sub-accounts, CloudNativePG namespaces, and network isolation.

Example Usage​

Basic Tenant Project​

resource "okustera_tenant" "engineering" {
name = "tenant_engineering"
description = "Dedicated workspace for Engineering teams"
enabled = true
}

output "engineering_tenant_id" {
value = okustera_tenant.engineering.id
}

Multi-Tenant Workspace Provisioning​

resource "okustera_tenant" "analytics" {
name = "tenant_analytics_prod"
description = "Production Analytics & Data Pipelines"
enabled = true
}

Schema​

Required​

  • name (String) Unique name of the tenant project.

Optional​

  • description (String) Description of the tenant project's purpose.
  • enabled (Boolean) Whether the tenant project is active and enabled. Defaults to true.

Read-Only Attributes​

  • id (String) Unique identifier (UUID/Hex) of the tenant project in Keystone.
  • domain_id (String) Keystone domain ID containing the project (defaults to default).

Import​

Tenants can be imported using their project ID or name:

terraform import okustera_tenant.engineering <TENANT_PROJECT_ID>