File tree 5 files changed +7
-16
lines changed
5 files changed +7
-16
lines changed Original file line number Diff line number Diff line change @@ -16,18 +16,22 @@ module "vpc" {
16
16
availability_zones = [data . alicloud_zones . default . zones . 0 . id ]
17
17
}
18
18
19
+ resource "random_integer" "default" {
20
+ min = 10000
21
+ max = 99999
22
+ }
23
+
19
24
module "example" {
20
25
source = " ../.."
21
26
22
27
# alicloud_ons_instance
23
- ons_instance_name = var. ons_instance_name
28
+ ons_instance_name = " ${ var . ons_instance_name } - ${ random_integer . default . result } "
24
29
ons_instance_remark = var. ons_instance_remark
25
30
26
31
# alicloud_ons_topic
27
32
topic = " tf-topic-name"
28
33
message_type = 0
29
34
ons_topic_remark = " tf-topic-remark"
30
- ons_topic_perm = var. ons_topic_perm
31
35
32
36
# alicloud_kvstore_instance
33
37
redis_instance_name = var. redis_instance_name
@@ -42,4 +46,4 @@ module "example" {
42
46
redis_tags_created = var. redis_tags_created
43
47
redis_tags_for = var. redis_tags_for
44
48
45
- }
49
+ }
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ ons_instance_name = "update-tf-ons-instance-name"
3
3
ons_instance_remark = " update-tf-ons-instance-remark"
4
4
5
5
# alicloud_ons_topic
6
- ons_topic_perm = 6
7
6
8
7
# alicloud_kvstore_instance
9
8
redis_instance_name = " update-tf-redis-instance-name"
Original file line number Diff line number Diff line change @@ -12,11 +12,6 @@ variable "ons_instance_remark" {
12
12
}
13
13
14
14
# alicloud_ons_topic
15
- variable "ons_topic_perm" {
16
- description = " This attribute is used to set the read-write mode for the topic."
17
- type = number
18
- default = " 2"
19
- }
20
15
21
16
# alicloud_kvstore_instance
22
17
variable "redis_instance_name" {
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ resource "alicloud_ons_topic" "default" {
8
8
instance_id = alicloud_ons_instance. default . id
9
9
message_type = var. message_type
10
10
remark = var. ons_topic_remark
11
- perm = var. ons_topic_perm
12
11
}
13
12
14
13
resource "alicloud_kvstore_instance" "default" {
Original file line number Diff line number Diff line change @@ -30,12 +30,6 @@ variable "ons_topic_remark" {
30
30
default = " "
31
31
}
32
32
33
- variable "ons_topic_perm" {
34
- description = " This attribute is used to set the read-write mode for the topic."
35
- type = number
36
- default = " 2"
37
- }
38
-
39
33
# alicloud_kvstore_instance
40
34
variable "redis_instance_name" {
41
35
description = " The specification of the redis instance name."
You can’t perform that action at this time.
0 commit comments