alicloud_ecd_user

更新时间:

Provides a Elastic Desktop Service (ECD) User resource.

For information about Elastic Desktop Service (ECD) User and how to use it, see What is User.

-> NOTE: Available since v1.142.0.

Example Usage

Basic Usage


provider "alicloud" {
  region = "cn-shanghai"
}

resource "alicloud_ecd_user" "default" {
  end_user_id = "terraform_example123"
  email       = "tf.example@abc.com"
  phone       = "18888888888"
  password    = "Example_123"
}

Argument Reference

The following arguments are supported:

  • email - (Required, ForceNew) The email of the user email.
  • end_user_id - (Required, ForceNew) The Username. The custom setting is composed of lowercase letters, numbers and underscores, and the length is 3~24 characters.
  • password - (Optional, ForceNew) The password of the user password.
  • phone - (Optional, ForceNew) The phone of the mobile phone number.
  • status - (Optional, Computed) The status of the resource. Valid values: Unlocked, Locked.

Attributes Reference

The following attributes are exported:

  • id - The resource ID in terraform of User. Its value is same as end_user_id.

Import

ECD User can be imported using the id, e.g.

$ terraform import alicloud_ecd_user.example <end_user_id>