» huaweicloud_identity_user_v3

Manages a User resource within HuaweiCloud IAM service.

Note: You must have admin privileges in your HuaweiCloud cloud to use this resource.

» Example Usage

resource "huaweicloud_identity_user_v3" "user_1" {
  name        = "user_1"
  description = "A user"
  password    = "password123!"


» Argument Reference

The following arguments are supported:

  • name - (Required) The name of the user. The user name consists of 5 to 32 characters. It can contain only uppercase letters, lowercase letters, digits, spaces, and special characters (-_) and cannot start with a digit.

  • description - (Optional) A description of the user.

  • default_project_id - (Optional) The default project this user belongs to.

  • domain_id - (Optional) The domain this user belongs to.

  • enabled - (Optional) Whether the user is enabled or disabled. Valid values are true and false.

  • password - (Optional) The password for the user. It must contain at least two of the following character types: uppercase letters, lowercase letters, digits, and special characters.

  • region - (Optional) The region in which to obtain the V3 Keystone client. If omitted, the region argument of the provider is used. Changing this creates a new User.

» Attributes Reference

The following attributes are exported:

» Import

Users can be imported using the id, e.g.

$ terraform import huaweicloud_identity_user_v3.user_1 89c60255-9bd6-460c-822a-e2b959ede9d2