okustera_user (Resource)
The okustera_user resource provisions and manages user accounts within the Okustera platform. Users can authenticate to the Okustera Cloud Portal, managed API Gateway, and cloud APIs.
Example Usage
Basic User Account
resource "okustera_user" "demo_user" {
name = "demo_user"
password = "<PASSWORD>"
default_project_id = okustera_tenant.demo_tenant.id
enabled = true
}
Schema
Required
name(String) Unique username.password(String, Sensitive) Password for the user account.
Optional
email(String) Email address associated with the user account.default_project_id(String) Default project/tenant ID for scoping tokens upon authentication.enabled(Boolean) Whether the user account is enabled and active. Defaults totrue.
Read-Only Attributes
id(String) Unique identifier (UUID/Hex) of the user.domain_id(String) Identity domain ID containing the user.
Import
Users can be imported using their user ID:
terraform import okustera_user.demo_user <user_id>