Skip to content

Commit 4492689

Browse files
committed
examples/complete: improve the examples
1 parent 4f9d3f5 commit 4492689

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

examples/complete/main.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@ data "alicloud_ecd_bundles" "bundles" {
66
bundle_type = "SYSTEM"
77
}
88

9+
resource "random_integer" "default" {
10+
min = 10000
11+
max = 99999
12+
}
13+
914
module "default" {
1015
source = "../.."
1116
bundle_id = data.alicloud_ecd_bundles.bundles.bundles.0.id
1217
#alicloud_ecd_simple_office_site
1318
create_office_site = true
14-
office_site_name = var.office_site_name
19+
office_site_name = "${var.office_site_name}-${random_integer.default.result}"
1520
cidr_block = "172.16.0.0/12"
1621
desktop_access_type = var.desktop_access_type
1722
cen_id = ""

examples/complete/tfvars/01-update.tfvars

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ policy_local_drive = "read"
1616
policy_usb_redirect = "on"
1717
policy_watermark = "on"
1818
domain_list = "[black:],example.com"
19-
html_access = "on"
2019
html_file_transfer = "all"
2120
visual_quality = "medium"
2221
watermark_type = "EndUserId"
@@ -44,8 +43,6 @@ host_name = "update-testhost-name"
4443
payment_type = "PayAsYouGo"
4544
period = 1
4645
period_unit = "Year"
47-
user_disk_size_gib = 100
48-
root_disk_size_gib = 80
4946
desktop_status = "Stopped"
5047
stopped_mode = "StopCharging"
5148
user_assign_mode = "PER_USER"

0 commit comments

Comments
 (0)