okustera_user (Resource)
The okustera_user resource provisions and manages Keystone users within the Okustera platform. Users can authenticate to the Okustera Web Portal, APISIX Gateway, and OpenStack 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 in Keystone.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 in Keystone.domain_id(String) Keystone domain ID containing the user.
Import
Users can be imported using their Keystone user ID:
terraform import okustera_user.demo_user <user_id>