File tree Expand file tree Collapse file tree 6 files changed +28
-38
lines changed Expand file tree Collapse file tree 6 files changed +28
-38
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ data "alicloud_ecd_bundles" "bundles" {
77}
88
99resource "random_integer" "default" {
10- min = 10000
10+ min = 10000
1111 max = 99999
1212}
1313
1414module "default" {
15- source = " ../.."
16- bundle_id = data. alicloud_ecd_bundles . bundles . bundles . 0 . id
15+ source = " ../.."
16+ bundle_id = data. alicloud_ecd_bundles . bundles . bundles [ 0 ] . id
1717 # alicloud_ecd_simple_office_site
1818 create_office_site = true
1919 office_site_name = " ${ var . office_site_name } -${ random_integer . default . result } "
Original file line number Diff line number Diff line change @@ -20,32 +20,19 @@ html_file_transfer = "all"
2020visual_quality = " medium"
2121watermark_type = " EndUserId"
2222watermark_transparency = " LIGHT"
23- authorize_access_policy_rules = {
24- description = " update_tf_access_policy_rule_description"
25- cidr_ip = " 1.2.3.42/24"
26- }
27- authorize_security_policy_rules = {
28- type = " outflow"
29- policy = " drop"
30- description = " update_tf_security_policy_rule_description"
31- port_range = " 8080/8080"
32- ip_protocol = " ALL"
33- priority = " 2"
34- cidr_ip = " 1.2.3.34/24"
35- }
3623# alicloud_ecd_desktop
37- desktop_name = " tf-test"
38- amount = 1
39- auto_pay = true
40- auto_renew = true
41- desktop_type = " "
42- host_name = " update-testhost-name"
43- payment_type = " PayAsYouGo"
44- period = 1
45- period_unit = " Year"
46- desktop_status = " Stopped"
47- stopped_mode = " StopCharging"
48- user_assign_mode = " PER_USER"
24+ desktop_name = " tf-test"
25+ amount = 1
26+ auto_pay = true
27+ auto_renew = true
28+ desktop_type = " "
29+ host_name = " update-testhost-name"
30+ payment_type = " PayAsYouGo"
31+ period = 1
32+ period_unit = " Year"
33+ desktop_status = " Stopped"
34+ stopped_mode = " StopCharging"
35+ user_assign_mode = " PER_USER"
4936tags = {
5037 Created = " TF"
5138}
Original file line number Diff line number Diff line change @@ -232,8 +232,8 @@ variable "user_disk_size_gib" {
232232variable "tags" {
233233 description = " A mapping of tags to assign to the resource."
234234 type = map (string )
235- default = {
236- Created = " TF"
235+ default = {
236+ Created = " TF"
237237 }
238238}
239239# alicloud_ecd_network_package
Original file line number Diff line number Diff line change 1+ terraform {
2+ required_version = " >=0.13"
3+ }
Original file line number Diff line number Diff line change 11locals {
22 # Get ID of office site resources
3- this_office_site_id = var. create_office_site ? concat (alicloud_ecd_simple_office_site. office_site . * . id , [" " ])[0 ] : var. office_site_id
3+ this_office_site_id = var. create_office_site ? concat (alicloud_ecd_simple_office_site. office_site [ * ] . id , [" " ])[0 ] : var. office_site_id
44 # Get ID of policy group resources
5- this_policy_group_id = var. create_policy_group ? concat (alicloud_ecd_policy_group. policy_group . * . id , [" " ])[0 ] : var. policy_group_id
5+ this_policy_group_id = var. create_policy_group ? concat (alicloud_ecd_policy_group. policy_group [ * ] . id , [" " ])[0 ] : var. policy_group_id
66 # Get ID of user resources
7- this_user_id = var. create_user ? concat (alicloud_ecd_user. user . * . id , [" " ])[0 ] : var. user_id
7+ this_user_id = var. create_user ? concat (alicloud_ecd_user. user [ * ] . id , [" " ])[0 ] : var. user_id
88 # Get ID of desktop resources
9- this_desktop_id = var. create_desktop ? concat (alicloud_ecd_desktop. desktop . * . id , [" " ])[0 ] : var. desktop_id
9+ this_desktop_id = var. create_desktop ? concat (alicloud_ecd_desktop. desktop [ * ] . id , [" " ])[0 ] : var. desktop_id
1010}
Original file line number Diff line number Diff line change @@ -20,20 +20,20 @@ output "desktop_id" {
2020
2121output "desktop_bundle_id" {
2222 description = " The bundle id list of the Desktop."
23- value = concat (alicloud_ecd_desktop. desktop . * . bundle_id , [" " ])[0 ]
23+ value = concat (alicloud_ecd_desktop. desktop [ * ] . bundle_id , [" " ])[0 ]
2424}
2525
2626output "image_id" {
2727 description = " The resource ID in terraform of Image."
28- value = concat (alicloud_ecd_image. image . * . id , [" " ])[0 ]
28+ value = concat (alicloud_ecd_image. image [ * ] . id , [" " ])[0 ]
2929}
3030
3131output "network_package_id" {
3232 description = " The resource ID in terraform of Network Package."
33- value = concat (alicloud_ecd_network_package. network_package . * . id , [" " ])[0 ]
33+ value = concat (alicloud_ecd_network_package. network_package [ * ] . id , [" " ])[0 ]
3434}
3535
3636output "nas_file_system_id" {
3737 description = " The resource ID in terraform of Nas File System."
38- value = concat (alicloud_ecd_nas_file_system. nas_file_system . * . id , [" " ])[0 ]
38+ value = concat (alicloud_ecd_nas_file_system. nas_file_system [ * ] . id , [" " ])[0 ]
3939}
You can’t perform that action at this time.
0 commit comments