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.
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"
}
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
.The following attributes are exported:
id
- The resource ID in terraform of User. Its value is same as end_user_id
.ECD User can be imported using the id, e.g.
$ terraform import alicloud_ecd_user.example <end_user_id>