diff --git a/README-CN.md b/README-CN.md index 8c27111..43dac0a 100644 --- a/README-CN.md +++ b/README-CN.md @@ -52,25 +52,122 @@ module "default" { ## 示例 -* [Clickhouse 完整示例](https://github.com/terraform-alicloud-modules/terraform-alicloud-eds/tree/main/examples/complete) +* [完整示例](https://github.com/terraform-alicloud-modules/terraform-alicloud-eds/tree/main/examples/complete) ## 注意事项 * 本 Module 使用的 AccessKey 和 SecretKey 可以直接从 `profile` 和 `shared_credentials_file` 中获取。如果未设置,可通过下载安装 [aliyun-cli](https://github.com/aliyun/aliyun-cli#installation) 后进行配置. -## 要求 + + +## Requirements | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | > = 0.13.0 | -| [alicloud](#requirement\_alicloud) | > = 1.146.0 | +| [terraform](#requirement\_terraform) | >=0.13 | ## Providers | Name | Version | |------|---------| -| [alicloud](#provider\_alicloud) | > = 1.146.0 | +| [alicloud](#provider\_alicloud) | n/a | + +## Modules + +No modules. + +## Resources + +| Name | Type | +|------|------| +| [alicloud_ecd_desktop.desktop](https://registry.terraform.io/providers/hashicorp/alicloud/latest/docs/resources/ecd_desktop) | resource | +| [alicloud_ecd_image.image](https://registry.terraform.io/providers/hashicorp/alicloud/latest/docs/resources/ecd_image) | resource | +| [alicloud_ecd_nas_file_system.nas_file_system](https://registry.terraform.io/providers/hashicorp/alicloud/latest/docs/resources/ecd_nas_file_system) | resource | +| [alicloud_ecd_network_package.network_package](https://registry.terraform.io/providers/hashicorp/alicloud/latest/docs/resources/ecd_network_package) | resource | +| [alicloud_ecd_policy_group.policy_group](https://registry.terraform.io/providers/hashicorp/alicloud/latest/docs/resources/ecd_policy_group) | resource | +| [alicloud_ecd_simple_office_site.office_site](https://registry.terraform.io/providers/hashicorp/alicloud/latest/docs/resources/ecd_simple_office_site) | resource | +| [alicloud_ecd_user.user](https://registry.terraform.io/providers/hashicorp/alicloud/latest/docs/resources/ecd_user) | resource | + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [amount](#input\_amount) | The amount of the Desktop. | `number` | `1` | no | +| [authorize\_access\_policy\_rules](#input\_authorize\_access\_policy\_rules) | The rule of authorize access rule. | `map(string)` | `{}` | no | +| [authorize\_security\_policy\_rules](#input\_authorize\_security\_policy\_rules) | The policy rule. | `map(string)` | `{}` | no | +| [auto\_pay](#input\_auto\_pay) | The auto-pay of the Desktop whether to pay automatically. values: true, false. | `bool` | `false` | no | +| [auto\_renew](#input\_auto\_renew) | The auto-renewal of the Desktop whether to renew automatically. It takes effect only when the parameter ChargeType is set to PrePaid. values: true, false. | `bool` | `false` | no | +| [bandwidth](#input\_bandwidth) | The bandwidth of package public network bandwidth peak. Valid values: 1~200. Unit:Mbps. | `string` | `null` | no | +| [bundle\_id](#input\_bundle\_id) | The bundle id of the Desktop. | `string` | `null` | no | +| [cen\_id](#input\_cen\_id) | Cloud Enterprise Network Instance ID. | `string` | `null` | no | +| [cen\_owner\_id](#input\_cen\_owner\_id) | The cen owner id. | `number` | `null` | no | +| [cidr\_block](#input\_cidr\_block) | Workspace Corresponds to the Security Office Network of IPv4 Segment. | `string` | `null` | no | +| [create\_desktop](#input\_create\_desktop) | Controls if ecd desktop should be created | `bool` | `false` | no | +| [create\_image](#input\_create\_image) | Controls if ecd image should be created | `bool` | `false` | no | +| [create\_nas\_file\_system](#input\_create\_nas\_file\_system) | Controls if ecd nas file system should be created | `bool` | `false` | no | +| [create\_network\_package](#input\_create\_network\_package) | Controls if ecd network package should be created | `bool` | `false` | no | +| [create\_office\_site](#input\_create\_office\_site) | Controls if office site should be created | `bool` | `false` | no | +| [create\_policy\_group](#input\_create\_policy\_group) | Controls if ecd policy group should be created | `bool` | `false` | no | +| [create\_user](#input\_create\_user) | Controls if ecd user should be created | `bool` | `false` | no | +| [desktop\_access\_type](#input\_desktop\_access\_type) | Connect to the Cloud Desktop Allows the Use of the Access Mode of. Valid values: Any, Internet, VPC. | `string` | `"Internet"` | no | +| [desktop\_id](#input\_desktop\_id) | The desktop id of the desktop.It will be ignored when create\_desktop = true | `string` | `null` | no | +| [desktop\_name](#input\_desktop\_name) | The desktop name of the Desktop. | `string` | `null` | no | +| [desktop\_status](#input\_desktop\_status) | The status of the Desktop. Valid values: Deleted, Expired, Pending, Running, Starting, Stopped, Stopping. | `string` | `null` | no | +| [desktop\_type](#input\_desktop\_type) | The desktop type of the Desktop. | `string` | `null` | no | +| [domain\_list](#input\_domain\_list) | The list of domain. | `string` | `null` | no | +| [enable\_admin\_access](#input\_enable\_admin\_access) | Whether to Use Cloud Desktop User Empowerment of Local Administrator Permissions. | `bool` | `false` | no | +| [enable\_cross\_desktop\_access](#input\_enable\_cross\_desktop\_access) | Enable Cross-Desktop Access. | `bool` | `false` | no | +| [end\_user\_id](#input\_end\_user\_id) | The Username. The custom setting is composed of lowercase letters, numbers and underscores, and the length is 3~24 characters. | `string` | `null` | no | +| [host\_name](#input\_host\_name) | The hostname of the Desktop. | `string` | `null` | no | +| [html\_access](#input\_html\_access) | The access of html5. Valid values: off, on. | `string` | `"off"` | no | +| [html\_file\_transfer](#input\_html\_file\_transfer) | The html5 file transfer. Valid values: all, download, off, upload. | `string` | `"off"` | no | +| [image\_description](#input\_image\_description) | The description of the image. | `string` | `null` | no | +| [image\_name](#input\_image\_name) | The name of the image. | `string` | `null` | no | +| [mfa\_enabled](#input\_mfa\_enabled) | Whether to Enable Multi-Factor Authentication MFA. | `bool` | `false` | no | +| [mount\_target\_domain](#input\_mount\_target\_domain) | The domain of mount target. | `string` | `null` | no | +| [nas\_file\_system\_description](#input\_nas\_file\_system\_description) | The description of nas file system. | `string` | `null` | no | +| [nas\_file\_system\_name](#input\_nas\_file\_system\_name) | The name of nas file system. | `string` | `null` | no | +| [office\_site\_id](#input\_office\_site\_id) | The ID of the Simple Office Site. | `string` | `null` | no | +| [office\_site\_name](#input\_office\_site\_name) | The office site name. | `string` | `null` | no | +| [payment\_type](#input\_payment\_type) | The payment type of the Desktop. Valid values: PayAsYouGo, Subscription. Default to PayAsYouGo. | `string` | `"PayAsYouGo"` | no | +| [period](#input\_period) | The period of the Desktop. | `number` | `1` | no | +| [period\_unit](#input\_period\_unit) | The period unit of the Desktop. | `string` | `"Month"` | no | +| [policy\_clipboard](#input\_policy\_clipboard) | The clipboard policy. Valid values: off, read, readwrite. | `string` | `"off"` | no | +| [policy\_group\_id](#input\_policy\_group\_id) | The policy group id of the Desktop.It will be ignored when create\_policy\_group = true | `string` | `null` | no | +| [policy\_group\_name](#input\_policy\_group\_name) | The name of policy group. | `string` | `null` | no | +| [policy\_local\_drive](#input\_policy\_local\_drive) | Local drive redirect policy. Valid values: readwrite, off, read. | `string` | `"off"` | no | +| [policy\_usb\_redirect](#input\_policy\_usb\_redirect) | The usb redirect policy. Valid values: off, on. | `string` | `"off"` | no | +| [policy\_watermark](#input\_policy\_watermark) | The watermark policy. Valid values: off, on. | `string` | `"off"` | no | +| [reset](#input\_reset) | The mount point is in an inactive state, reset the mount point of the NAS file system. Default to false. | `bool` | `false` | no | +| [root\_disk\_size\_gib](#input\_root\_disk\_size\_gib) | The root disk size gib of the Desktop. | `number` | `100` | no | +| [sso\_enabled](#input\_sso\_enabled) | Whether to Enable Single Sign-on (SSO) for User-Based SSO. | `bool` | `false` | no | +| [stopped\_mode](#input\_stopped\_mode) | The stopped mode of the Desktop. | `string` | `"StopCharging"` | no | +| [tags](#input\_tags) | A mapping of tags to assign to the resource. | `map(string)` | `{}` | no | +| [user\_assign\_mode](#input\_user\_assign\_mode) | The user assign mode of the Desktop. Valid values: ALL, PER\_USER. Default to ALL. | `string` | `"ALL"` | no | +| [user\_disk\_size\_gib](#input\_user\_disk\_size\_gib) | The user disk size gib of the Desktop. | `number` | `100` | no | +| [user\_email](#input\_user\_email) | The email of the user email. | `string` | `null` | no | +| [user\_id](#input\_user\_id) | The desktop end user id of the Desktop.It will be ignored when create\_user = true | `string` | `null` | no | +| [user\_password](#input\_user\_password) | The password of the user password. | `string` | `null` | no | +| [user\_phone](#input\_user\_phone) | The phone of the mobile phone number. | `string` | `null` | no | +| [user\_status](#input\_user\_status) | The status of the resource. Valid values: Unlocked, Locked. | `string` | `"Unlocked"` | no | +| [visual\_quality](#input\_visual\_quality) | The quality of visual. Valid values: high, lossless, low, medium. | `string` | `"low"` | no | +| [watermark\_transparency](#input\_watermark\_transparency) | The watermark transparency. Valid values: DARK, LIGHT, MIDDLE. | `string` | `null` | no | +| [watermark\_type](#input\_watermark\_type) | The type of watemark. Valid values: EndUserId, HostName. | `string` | `null` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| [desktop\_bundle\_id](#output\_desktop\_bundle\_id) | The bundle id list of the Desktop. | +| [desktop\_id](#output\_desktop\_id) | The resource ID in terraform of Desktop. | +| [image\_id](#output\_image\_id) | The resource ID in terraform of Image. | +| [nas\_file\_system\_id](#output\_nas\_file\_system\_id) | The resource ID in terraform of Nas File System. | +| [network\_package\_id](#output\_network\_package\_id) | The resource ID in terraform of Network Package. | +| [policy\_group\_id](#output\_policy\_group\_id) | The resource ID in terraform of Policy Group. | +| [simple\_office\_site\_id](#output\_simple\_office\_site\_id) | The resource ID in terraform of Simple Office Site. | +| [user\_id](#output\_user\_id) | The resource ID in terraform of User. | + ## 提交问题 diff --git a/README.md b/README.md index 249852d..febf95b 100644 --- a/README.md +++ b/README.md @@ -59,18 +59,115 @@ module "default" { * This module using AccessKey and SecretKey are from `profile` and `shared_credentials_file`. If you have not set them yet, please install [aliyun-cli](https://github.com/aliyun/aliyun-cli#installation) and configure it. + + ## Requirements | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | > = 0.13.0 | -| [alicloud](#requirement\_alicloud) | > = 1.146.0 | +| [terraform](#requirement\_terraform) | >=0.13 | ## Providers | Name | Version | |------|---------| -| [alicloud](#provider\_alicloud) | > = 1.146.0 | +| [alicloud](#provider\_alicloud) | n/a | + +## Modules + +No modules. + +## Resources + +| Name | Type | +|------|------| +| [alicloud_ecd_desktop.desktop](https://registry.terraform.io/providers/hashicorp/alicloud/latest/docs/resources/ecd_desktop) | resource | +| [alicloud_ecd_image.image](https://registry.terraform.io/providers/hashicorp/alicloud/latest/docs/resources/ecd_image) | resource | +| [alicloud_ecd_nas_file_system.nas_file_system](https://registry.terraform.io/providers/hashicorp/alicloud/latest/docs/resources/ecd_nas_file_system) | resource | +| [alicloud_ecd_network_package.network_package](https://registry.terraform.io/providers/hashicorp/alicloud/latest/docs/resources/ecd_network_package) | resource | +| [alicloud_ecd_policy_group.policy_group](https://registry.terraform.io/providers/hashicorp/alicloud/latest/docs/resources/ecd_policy_group) | resource | +| [alicloud_ecd_simple_office_site.office_site](https://registry.terraform.io/providers/hashicorp/alicloud/latest/docs/resources/ecd_simple_office_site) | resource | +| [alicloud_ecd_user.user](https://registry.terraform.io/providers/hashicorp/alicloud/latest/docs/resources/ecd_user) | resource | + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| [amount](#input\_amount) | The amount of the Desktop. | `number` | `1` | no | +| [authorize\_access\_policy\_rules](#input\_authorize\_access\_policy\_rules) | The rule of authorize access rule. | `map(string)` | `{}` | no | +| [authorize\_security\_policy\_rules](#input\_authorize\_security\_policy\_rules) | The policy rule. | `map(string)` | `{}` | no | +| [auto\_pay](#input\_auto\_pay) | The auto-pay of the Desktop whether to pay automatically. values: true, false. | `bool` | `false` | no | +| [auto\_renew](#input\_auto\_renew) | The auto-renewal of the Desktop whether to renew automatically. It takes effect only when the parameter ChargeType is set to PrePaid. values: true, false. | `bool` | `false` | no | +| [bandwidth](#input\_bandwidth) | The bandwidth of package public network bandwidth peak. Valid values: 1~200. Unit:Mbps. | `string` | `null` | no | +| [bundle\_id](#input\_bundle\_id) | The bundle id of the Desktop. | `string` | `null` | no | +| [cen\_id](#input\_cen\_id) | Cloud Enterprise Network Instance ID. | `string` | `null` | no | +| [cen\_owner\_id](#input\_cen\_owner\_id) | The cen owner id. | `number` | `null` | no | +| [cidr\_block](#input\_cidr\_block) | Workspace Corresponds to the Security Office Network of IPv4 Segment. | `string` | `null` | no | +| [create\_desktop](#input\_create\_desktop) | Controls if ecd desktop should be created | `bool` | `false` | no | +| [create\_image](#input\_create\_image) | Controls if ecd image should be created | `bool` | `false` | no | +| [create\_nas\_file\_system](#input\_create\_nas\_file\_system) | Controls if ecd nas file system should be created | `bool` | `false` | no | +| [create\_network\_package](#input\_create\_network\_package) | Controls if ecd network package should be created | `bool` | `false` | no | +| [create\_office\_site](#input\_create\_office\_site) | Controls if office site should be created | `bool` | `false` | no | +| [create\_policy\_group](#input\_create\_policy\_group) | Controls if ecd policy group should be created | `bool` | `false` | no | +| [create\_user](#input\_create\_user) | Controls if ecd user should be created | `bool` | `false` | no | +| [desktop\_access\_type](#input\_desktop\_access\_type) | Connect to the Cloud Desktop Allows the Use of the Access Mode of. Valid values: Any, Internet, VPC. | `string` | `"Internet"` | no | +| [desktop\_id](#input\_desktop\_id) | The desktop id of the desktop.It will be ignored when create\_desktop = true | `string` | `null` | no | +| [desktop\_name](#input\_desktop\_name) | The desktop name of the Desktop. | `string` | `null` | no | +| [desktop\_status](#input\_desktop\_status) | The status of the Desktop. Valid values: Deleted, Expired, Pending, Running, Starting, Stopped, Stopping. | `string` | `null` | no | +| [desktop\_type](#input\_desktop\_type) | The desktop type of the Desktop. | `string` | `null` | no | +| [domain\_list](#input\_domain\_list) | The list of domain. | `string` | `null` | no | +| [enable\_admin\_access](#input\_enable\_admin\_access) | Whether to Use Cloud Desktop User Empowerment of Local Administrator Permissions. | `bool` | `false` | no | +| [enable\_cross\_desktop\_access](#input\_enable\_cross\_desktop\_access) | Enable Cross-Desktop Access. | `bool` | `false` | no | +| [end\_user\_id](#input\_end\_user\_id) | The Username. The custom setting is composed of lowercase letters, numbers and underscores, and the length is 3~24 characters. | `string` | `null` | no | +| [host\_name](#input\_host\_name) | The hostname of the Desktop. | `string` | `null` | no | +| [html\_access](#input\_html\_access) | The access of html5. Valid values: off, on. | `string` | `"off"` | no | +| [html\_file\_transfer](#input\_html\_file\_transfer) | The html5 file transfer. Valid values: all, download, off, upload. | `string` | `"off"` | no | +| [image\_description](#input\_image\_description) | The description of the image. | `string` | `null` | no | +| [image\_name](#input\_image\_name) | The name of the image. | `string` | `null` | no | +| [mfa\_enabled](#input\_mfa\_enabled) | Whether to Enable Multi-Factor Authentication MFA. | `bool` | `false` | no | +| [mount\_target\_domain](#input\_mount\_target\_domain) | The domain of mount target. | `string` | `null` | no | +| [nas\_file\_system\_description](#input\_nas\_file\_system\_description) | The description of nas file system. | `string` | `null` | no | +| [nas\_file\_system\_name](#input\_nas\_file\_system\_name) | The name of nas file system. | `string` | `null` | no | +| [office\_site\_id](#input\_office\_site\_id) | The ID of the Simple Office Site. | `string` | `null` | no | +| [office\_site\_name](#input\_office\_site\_name) | The office site name. | `string` | `null` | no | +| [payment\_type](#input\_payment\_type) | The payment type of the Desktop. Valid values: PayAsYouGo, Subscription. Default to PayAsYouGo. | `string` | `"PayAsYouGo"` | no | +| [period](#input\_period) | The period of the Desktop. | `number` | `1` | no | +| [period\_unit](#input\_period\_unit) | The period unit of the Desktop. | `string` | `"Month"` | no | +| [policy\_clipboard](#input\_policy\_clipboard) | The clipboard policy. Valid values: off, read, readwrite. | `string` | `"off"` | no | +| [policy\_group\_id](#input\_policy\_group\_id) | The policy group id of the Desktop.It will be ignored when create\_policy\_group = true | `string` | `null` | no | +| [policy\_group\_name](#input\_policy\_group\_name) | The name of policy group. | `string` | `null` | no | +| [policy\_local\_drive](#input\_policy\_local\_drive) | Local drive redirect policy. Valid values: readwrite, off, read. | `string` | `"off"` | no | +| [policy\_usb\_redirect](#input\_policy\_usb\_redirect) | The usb redirect policy. Valid values: off, on. | `string` | `"off"` | no | +| [policy\_watermark](#input\_policy\_watermark) | The watermark policy. Valid values: off, on. | `string` | `"off"` | no | +| [reset](#input\_reset) | The mount point is in an inactive state, reset the mount point of the NAS file system. Default to false. | `bool` | `false` | no | +| [root\_disk\_size\_gib](#input\_root\_disk\_size\_gib) | The root disk size gib of the Desktop. | `number` | `100` | no | +| [sso\_enabled](#input\_sso\_enabled) | Whether to Enable Single Sign-on (SSO) for User-Based SSO. | `bool` | `false` | no | +| [stopped\_mode](#input\_stopped\_mode) | The stopped mode of the Desktop. | `string` | `"StopCharging"` | no | +| [tags](#input\_tags) | A mapping of tags to assign to the resource. | `map(string)` | `{}` | no | +| [user\_assign\_mode](#input\_user\_assign\_mode) | The user assign mode of the Desktop. Valid values: ALL, PER\_USER. Default to ALL. | `string` | `"ALL"` | no | +| [user\_disk\_size\_gib](#input\_user\_disk\_size\_gib) | The user disk size gib of the Desktop. | `number` | `100` | no | +| [user\_email](#input\_user\_email) | The email of the user email. | `string` | `null` | no | +| [user\_id](#input\_user\_id) | The desktop end user id of the Desktop.It will be ignored when create\_user = true | `string` | `null` | no | +| [user\_password](#input\_user\_password) | The password of the user password. | `string` | `null` | no | +| [user\_phone](#input\_user\_phone) | The phone of the mobile phone number. | `string` | `null` | no | +| [user\_status](#input\_user\_status) | The status of the resource. Valid values: Unlocked, Locked. | `string` | `"Unlocked"` | no | +| [visual\_quality](#input\_visual\_quality) | The quality of visual. Valid values: high, lossless, low, medium. | `string` | `"low"` | no | +| [watermark\_transparency](#input\_watermark\_transparency) | The watermark transparency. Valid values: DARK, LIGHT, MIDDLE. | `string` | `null` | no | +| [watermark\_type](#input\_watermark\_type) | The type of watemark. Valid values: EndUserId, HostName. | `string` | `null` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| [desktop\_bundle\_id](#output\_desktop\_bundle\_id) | The bundle id list of the Desktop. | +| [desktop\_id](#output\_desktop\_id) | The resource ID in terraform of Desktop. | +| [image\_id](#output\_image\_id) | The resource ID in terraform of Image. | +| [nas\_file\_system\_id](#output\_nas\_file\_system\_id) | The resource ID in terraform of Nas File System. | +| [network\_package\_id](#output\_network\_package\_id) | The resource ID in terraform of Network Package. | +| [policy\_group\_id](#output\_policy\_group\_id) | The resource ID in terraform of Policy Group. | +| [simple\_office\_site\_id](#output\_simple\_office\_site\_id) | The resource ID in terraform of Simple Office Site. | +| [user\_id](#output\_user\_id) | The resource ID in terraform of User. | + ## Submit Issues diff --git a/examples/complete/README.md b/examples/complete/README.md index 621a53f..3e93661 100644 --- a/examples/complete/README.md +++ b/examples/complete/README.md @@ -14,14 +14,6 @@ $ terraform apply Note that this example may create resources which cost money. Run `terraform destroy` when you don't need these resources. -This example provides the tf variables file in the folder `tfvars`. If you want to create or update this example, -you can run this example as the following commands: -```bash -$ terraform plan -var-file=tfvars/01-update.tfvars -$ terraform apply -var-file=tfvars/01-update.tfvars -``` - -Also, you can add more variables files in the folder `tfvars`. ## Requirements diff --git a/examples/complete/main.tf b/examples/complete/main.tf index 739d8a6..852c666 100644 --- a/examples/complete/main.tf +++ b/examples/complete/main.tf @@ -1,5 +1,5 @@ provider "alicloud" { - region = "cn-shanghai" + region = "cn-zhangjiakou" } data "alicloud_ecd_bundles" "bundles" { diff --git a/examples/complete/tfvars/01-update.tfvars b/examples/complete/tfvars/01-update.tfvars deleted file mode 100644 index 4dc1d51..0000000 --- a/examples/complete/tfvars/01-update.tfvars +++ /dev/null @@ -1,43 +0,0 @@ -image_name = "tf-test" -image_description = "update_image_description" -#alicloud_ecd_simple_office_site -office_site_name = "tf-test" -desktop_access_type = "Internet" -cen_owner_id = null -enable_cross_desktop_access = true -mfa_enabled = true -sso_enabled = true -#alicloud_ecd_user -user_status = "Unlocked" -#alicloud_ecd_policy_group -policy_group_name = "tf-test" -policy_clipboard = "read" -policy_local_drive = "read" -policy_usb_redirect = "on" -policy_watermark = "on" -domain_list = "[black:],example.com" -html_file_transfer = "all" -visual_quality = "medium" -watermark_type = "EndUserId" -watermark_transparency = "LIGHT" -#alicloud_ecd_desktop -desktop_name = "tf-test" -amount = 1 -auto_pay = true -auto_renew = true -desktop_type = "" -host_name = "update-testhost-name" -payment_type = "PayAsYouGo" -period = 1 -period_unit = "Year" -desktop_status = "Stopped" -stopped_mode = "StopCharging" -user_assign_mode = "PER_USER" -tags = { - Created = "TF" -} -#alicloud_ecd_network_package -bandwidth = 30 -#alicloud_ecd_nas_file_system -mount_target_domain = "" -reset = false diff --git a/examples/complete/variables.tf b/examples/complete/variables.tf index 5e7140c..f71c629 100644 --- a/examples/complete/variables.tf +++ b/examples/complete/variables.tf @@ -135,13 +135,13 @@ variable "visual_quality" { variable "watermark_transparency" { description = "The watermark transparency. Valid values: DARK, LIGHT, MIDDLE." type = string - default = "DARK" + default = null } variable "watermark_type" { description = "The type of watemark. Valid values: EndUserId, HostName." type = string - default = "HostName" + default = null } #alicloud_ecd_desktop @@ -208,7 +208,7 @@ variable "root_disk_size_gib" { variable "desktop_status" { description = "The status of the Desktop. Valid values: Deleted, Expired, Pending, Running, Starting, Stopped, Stopping." type = string - default = "Pending" + default = null } variable "stopped_mode" { @@ -247,7 +247,7 @@ variable "bandwidth" { variable "mount_target_domain" { description = "The domain of mount target." type = string - default = "" + default = null } variable "reset" { diff --git a/examples/complete/versions.tf b/examples/complete/versions.tf index 8a41946..3d39c85 100644 --- a/examples/complete/versions.tf +++ b/examples/complete/versions.tf @@ -1,3 +1,8 @@ terraform { required_version = ">=0.13" + required_providers { + alicloud = { + source = "hashicorp/alicloud" + } + } } diff --git a/variables.tf b/variables.tf index fb30b03..ed0b808 100644 --- a/variables.tf +++ b/variables.tf @@ -8,13 +8,13 @@ variable "create_office_site" { variable "office_site_name" { description = "The office site name." type = string - default = "" + default = null } variable "cidr_block" { description = "Workspace Corresponds to the Security Office Network of IPv4 Segment." type = string - default = "" + default = null } variable "desktop_access_type" { @@ -69,25 +69,25 @@ variable "create_user" { variable "end_user_id" { description = "The Username. The custom setting is composed of lowercase letters, numbers and underscores, and the length is 3~24 characters." type = string - default = "" + default = null } variable "user_email" { description = "The email of the user email." type = string - default = "" + default = null } variable "user_phone" { description = "The phone of the mobile phone number." type = string - default = "" + default = null } variable "user_password" { description = "The password of the user password." type = string - default = "" + default = null } variable "user_status" { @@ -106,7 +106,7 @@ variable "create_policy_group" { variable "policy_group_name" { description = "The name of policy group." type = string - default = "" + default = null } variable "policy_clipboard" { @@ -148,7 +148,7 @@ variable "authorize_security_policy_rules" { variable "domain_list" { description = "The list of domain." type = string - default = "" + default = null } variable "html_access" { @@ -172,13 +172,13 @@ variable "visual_quality" { variable "watermark_transparency" { description = "The watermark transparency. Valid values: DARK, LIGHT, MIDDLE." type = string - default = "DARK" + default = null } variable "watermark_type" { description = "The type of watemark. Valid values: EndUserId, HostName." type = string - default = "HostName" + default = null } #alicloud_ecd_desktop @@ -191,31 +191,31 @@ variable "create_desktop" { variable "desktop_name" { description = " The desktop name of the Desktop." type = string - default = "" + default = null } variable "user_id" { description = "The desktop end user id of the Desktop.It will be ignored when create_user = true" type = string - default = "" + default = null } variable "bundle_id" { description = "The bundle id of the Desktop." type = string - default = "" + default = null } variable "office_site_id" { description = "The ID of the Simple Office Site." type = string - default = "" + default = null } variable "policy_group_id" { description = "The policy group id of the Desktop.It will be ignored when create_policy_group = true" type = string - default = "" + default = null } variable "amount" { @@ -239,13 +239,13 @@ variable "auto_renew" { variable "desktop_type" { description = "The desktop type of the Desktop." type = string - default = "" + default = null } variable "host_name" { description = " The hostname of the Desktop." type = string - default = "" + default = null } variable "payment_type" { @@ -311,7 +311,7 @@ variable "create_network_package" { variable "bandwidth" { description = "The bandwidth of package public network bandwidth peak. Valid values: 1~200. Unit:Mbps." type = string - default = "" + default = null } #alicloud_ecd_nas_file_system @@ -324,7 +324,7 @@ variable "create_nas_file_system" { variable "nas_file_system_description" { description = "The description of nas file system." type = string - default = "" + default = null } variable "mount_target_domain" { @@ -342,7 +342,7 @@ variable "reset" { variable "nas_file_system_name" { description = "The name of nas file system." type = string - default = "" + default = null } #alicloud_ecd_image variable "create_image" { @@ -354,17 +354,17 @@ variable "create_image" { variable "image_name" { description = "The name of the image." type = string - default = "" + default = null } variable "image_description" { description = "The description of the image." type = string - default = "" + default = null } variable "desktop_id" { description = "The desktop id of the desktop.It will be ignored when create_desktop = true" type = string - default = "" -} \ No newline at end of file + default = null +} diff --git a/versions.tf b/versions.tf index 8a41946..3d39c85 100644 --- a/versions.tf +++ b/versions.tf @@ -1,3 +1,8 @@ terraform { required_version = ">=0.13" + required_providers { + alicloud = { + source = "hashicorp/alicloud" + } + } }