Skip to content

Commit f8a5188

Browse files
committed
add
1 parent 106974c commit f8a5188

File tree

41 files changed

+386
-420
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+386
-420
lines changed

tencentcloud/services/crs/resource_tc_redis_account.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ resource "tencentcloud_subnet" "subnet" {
6363
cidr_block = "10.0.1.0/24"
6464
}
6565
66-
resource "tencentcloud_redis_instance" "foo" {
66+
resource "tencentcloud_redis_instance" "example" {
6767
availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone
6868
type_id = data.tencentcloud_redis_zone_config.zone.list[1].type_id
69-
password = "test12345789"
69+
password = "Password@123"
7070
mem_size = 8192
7171
redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_shard_nums[0]
7272
redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_replicas_nums[0]
@@ -76,13 +76,13 @@ resource "tencentcloud_redis_instance" "foo" {
7676
subnet_id = tencentcloud_subnet.subnet.id
7777
}
7878
79-
resource "tencentcloud_redis_account" "account" {
80-
instance_id = tencentcloud_redis_instance.foo.id
81-
account_name = "account_test"
82-
account_password = "test1234"
83-
remark = "master"
79+
resource "tencentcloud_redis_account" "example" {
80+
instance_id = tencentcloud_redis_instance.example.id
81+
account_name = "tf_example"
82+
account_password = "Password@123"
83+
remark = "master"
8484
readonly_policy = ["master"]
85-
privilege = "r"
85+
privilege = "rw"
8686
}
8787
```
8888

@@ -91,5 +91,5 @@ Import
9191
redis account can be imported using the id, e.g.
9292

9393
```
94-
terraform import tencentcloud_redis_account.account crs-xxxxxx#account_test
95-
```
94+
terraform import tencentcloud_redis_account.example crs-cqdfdzvt#tf_example
95+
```

tencentcloud/services/crs/resource_tc_redis_backup_config.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ resource "tencentcloud_subnet" "subnet" {
2121
cidr_block = "10.0.1.0/24"
2222
}
2323
24-
resource "tencentcloud_redis_instance" "foo" {
24+
resource "tencentcloud_redis_instance" "example" {
2525
availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone
2626
type_id = data.tencentcloud_redis_zone_config.zone.list[1].type_id
27-
password = "test12345789"
27+
password = "Password@123"
2828
mem_size = 8192
2929
redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_shard_nums[0]
3030
redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_replicas_nums[0]
@@ -34,10 +34,9 @@ resource "tencentcloud_redis_instance" "foo" {
3434
subnet_id = tencentcloud_subnet.subnet.id
3535
}
3636
37-
resource "tencentcloud_redis_backup_config" "foo" {
38-
redis_id = tencentcloud_redis_instance.foo.id
39-
backup_time = "04:00-05:00"
40-
backup_period = ["Monday"]
37+
resource "tencentcloud_redis_backup_config" "example" {
38+
redis_id = tencentcloud_redis_instance.example.id
39+
backup_time = "04:00-05:00"
4140
}
4241
```
4342

@@ -46,5 +45,5 @@ Import
4645
Redis backup config can be imported, e.g.
4746

4847
```
49-
$ terraform import tencentcloud_redis_backup_config.foo redis-id
50-
```
48+
$ terraform import tencentcloud_redis_backup_config.example crs-cqdfdzvt
49+
```
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
Provides a resource to create a redis backup_download_restriction
1+
Provides a resource to create a redis backup download restriction
22

33
Example Usage
44

55
Modify the network information and address of the current region backup file download
66

77
```hcl
8-
resource "tencentcloud_redis_backup_download_restriction" "foo" {
9-
limit_type = "Customize"
10-
vpc_comparison_symbol = "In"
11-
ip_comparison_symbol = "In"
12-
limit_vpc {
13-
region = "ap-guangzhou"
14-
vpc_list = [var.vpc_id]
15-
}
16-
limit_ip = ["10.1.1.12", "10.1.1.13"]
8+
resource "tencentcloud_redis_backup_download_restriction" "example" {
9+
limit_type = "Customize"
10+
vpc_comparison_symbol = "In"
11+
ip_comparison_symbol = "In"
12+
limit_vpc {
13+
region = "ap-guangzhou"
14+
vpc_list = ["vpc-pu8wqojl"]
15+
}
16+
limit_ip = ["10.1.1.12", "10.1.1.13"]
1717
}
1818
```
1919

2020
Import
2121

22-
redis backup_download_restriction can be imported using the region, e.g.
22+
redis backup download restriction can be imported using the region, e.g.
2323

2424
```
25-
terraform import tencentcloud_redis_backup_download_restriction.foo ap-guangzhou
26-
```
25+
terraform import tencentcloud_redis_backup_download_restriction.example ap-guangzhou
26+
```
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
Provides a resource to create a redis backup_operation
1+
Provides a resource to create a redis backup operation
22

33
Example Usage
44

55
Manually back up the Redis instance, and the backup data is kept for 7 days
66

77
```hcl
8-
data "tencentcloud_mysql_instance" "foo" {}
8+
data "tencentcloud_mysql_instance" "example" {}
99
10-
resource "tencentcloud_redis_backup_operation" "backup_operation" {
11-
instance_id = data.tencentcloud_mysql_instance.foo.instance_list[0].mysql_id
12-
remark = "manually back"
10+
resource "tencentcloud_redis_backup_operation" "example" {
11+
instance_id = data.tencentcloud_mysql_instance.example.instance_list[0].mysql_id
12+
remark = "manually back"
1313
storage_days = 7
1414
}
1515
```

tencentcloud/services/crs/resource_tc_redis_clear_instance_operation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
Provides a resource to create a redis clear_instance_operation
1+
Provides a resource to create a redis clear instance operation
22

33
Example Usage
44

55
Clear the instance data of the Redis instance
66

77
```hcl
88
variable "password" {
9-
default = "test12345789"
9+
default = "Password@123"
1010
}
1111
1212
data "tencentcloud_redis_zone_config" "zone" {
@@ -25,21 +25,21 @@ resource "tencentcloud_subnet" "subnet" {
2525
cidr_block = "10.0.1.0/24"
2626
}
2727
28-
resource "tencentcloud_redis_instance" "foo" {
28+
resource "tencentcloud_redis_instance" "example" {
2929
availability_zone = data.tencentcloud_redis_zone_config.zone.list[1].zone
3030
type_id = data.tencentcloud_redis_zone_config.zone.list[1].type_id
3131
password = var.password
3232
mem_size = 8192
3333
redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_shard_nums[0]
3434
redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[1].redis_replicas_nums[0]
35-
name = "terrform_test"
35+
name = "tf_example"
3636
port = 6379
3737
vpc_id = tencentcloud_vpc.vpc.id
3838
subnet_id = tencentcloud_subnet.subnet.id
3939
}
4040
41-
resource "tencentcloud_redis_clear_instance_operation" "clear_instance_operation" {
42-
instance_id = tencentcloud_redis_instance.foo.id
41+
resource "tencentcloud_redis_clear_instance_operation" "example" {
42+
instance_id = tencentcloud_redis_instance.example.id
4343
password = var.password
4444
}
4545
```

tencentcloud/services/crs/resource_tc_redis_connection_config.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Provides a resource to create a redis connection_config
1+
Provides a resource to create a redis connection config
22

33
Example Usage
44

@@ -21,31 +21,30 @@ resource "tencentcloud_subnet" "subnet" {
2121
cidr_block = "10.0.1.0/24"
2222
}
2323
24-
resource "tencentcloud_redis_instance" "foo" {
24+
resource "tencentcloud_redis_instance" "example" {
2525
availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone
2626
type_id = data.tencentcloud_redis_zone_config.zone.list[0].type_id
27-
password = "test12345789"
27+
password = "Password@123"
2828
mem_size = 8192
2929
redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_shard_nums[0]
3030
redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_replicas_nums[0]
31-
name = "terrform_test"
31+
name = "tf_example"
3232
port = 6379
3333
vpc_id = tencentcloud_vpc.vpc.id
3434
subnet_id = tencentcloud_subnet.subnet.id
3535
}
3636
37-
resource "tencentcloud_redis_connection_config" "connection_config" {
38-
instance_id = "crs-fhm9fnv1"
39-
client_limit = "20000"
40-
add_bandwidth = "30"
37+
resource "tencentcloud_redis_connection_config" "example" {
38+
instance_id = tencentcloud_redis_instance.example.id
39+
client_limit = "20000"
40+
add_bandwidth = "30"
4141
}
42-
4342
```
4443

4544
Import
4645

47-
Redis connectionConfig can be imported, e.g.
46+
redis connection config can be imported, e.g.
4847

4948
```
50-
$ terraform import tencentcloud_redis_connection_config.connection_config instance_id
51-
```
49+
$ terraform import tencentcloud_redis_connection_config.example crs-cqdfdzvt
50+
```

tencentcloud/services/crs/resource_tc_redis_log_delivery.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Example Usage
88
Use cls logset and topic which existed
99

1010
```hcl
11-
resource "tencentcloud_redis_log_delivery" "delivery" {
11+
resource "tencentcloud_redis_log_delivery" "example" {
1212
instance_id = "crs-dmjj8en7"
1313
logset_id = "cc31d9d6-74c0-4888-8b2f-b8148c3bcc5c"
1414
topic_id = "5c2333e9-0bab-41fd-9f75-c602b3f9545f"
@@ -18,10 +18,10 @@ resource "tencentcloud_redis_log_delivery" "delivery" {
1818
Use exist cls logset and create new topic
1919

2020
```hcl
21-
resource "tencentcloud_redis_log_delivery" "delivery" {
21+
resource "tencentcloud_redis_log_delivery" "example" {
2222
instance_id = "crs-dmjj8en7"
2323
logset_id = "cc31d9d6-74c0-4888-8b2f-b8148c3bcc5c"
24-
topic_name = "test13"
24+
topic_name = "tf-example"
2525
period = 20
2626
create_index = true
2727
}
@@ -30,11 +30,11 @@ resource "tencentcloud_redis_log_delivery" "delivery" {
3030
Create new cls logset and topic
3131

3232
```hcl
33-
resource "tencentcloud_redis_log_delivery" "delivery" {
33+
resource "tencentcloud_redis_log_delivery" "example" {
3434
instance_id = "crs-dmjj8en7"
3535
log_region = "ap-guangzhou"
36-
logset_name = "test"
37-
topic_name = "test"
36+
logset_name = "tf-example"
37+
topic_name = "tf-example"
3838
period = 20
3939
create_index = true
4040
}
@@ -45,5 +45,5 @@ Import
4545
Redis log delivery can be imported, e.g.
4646

4747
```
48-
$ terraform import tencentcloud_redis_log_delivery.delivery crs-dmjj8en7
49-
```
48+
$ terraform import tencentcloud_redis_log_delivery.example crs-dmjj8en7
49+
```

tencentcloud/services/crs/resource_tc_redis_maintenance_window.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Provides a resource to create a redis maintenance_window
1+
Provides a resource to create a redis maintenance window
22

33
Example Usage
44

@@ -19,30 +19,30 @@ resource "tencentcloud_subnet" "subnet" {
1919
cidr_block = "10.0.1.0/24"
2020
}
2121
22-
resource "tencentcloud_redis_instance" "foo" {
22+
resource "tencentcloud_redis_instance" "example" {
2323
availability_zone = data.tencentcloud_redis_zone_config.zone.list[0].zone
2424
type_id = data.tencentcloud_redis_zone_config.zone.list[0].type_id
25-
password = "test12345789"
25+
password = "Password@123"
2626
mem_size = 8192
2727
redis_shard_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_shard_nums[0]
2828
redis_replicas_num = data.tencentcloud_redis_zone_config.zone.list[0].redis_replicas_nums[0]
29-
name = "terrform_test"
29+
name = "tf_example"
3030
port = 6379
3131
vpc_id = tencentcloud_vpc.vpc.id
3232
subnet_id = tencentcloud_subnet.subnet.id
3333
}
3434
35-
resource "tencentcloud_redis_maintenance_window" "foo" {
36-
instance_id = tencentcloud_redis_instance.foo.id
37-
start_time = "17:00"
38-
end_time = "19:00"
35+
resource "tencentcloud_redis_maintenance_window" "example" {
36+
instance_id = tencentcloud_redis_instance.example.id
37+
start_time = "17:00"
38+
end_time = "19:00"
3939
}
4040
```
4141

4242
Import
4343

44-
redis maintenance_window can be imported using the id, e.g.
44+
redis maintenance window can be imported using the id, e.g.
4545

4646
```
47-
terraform import tencentcloud_redis_maintenance_window.foo instance_id
48-
```
47+
terraform import tencentcloud_redis_maintenance_window.example crs-cqdfdzvt
48+
```

tencentcloud/services/crs/resource_tc_redis_param.md

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,27 @@ Provides a resource to create a redis param
33
Example Usage
44

55
```hcl
6-
resource "tencentcloud_redis_param" "param" {
7-
instance_id = "crs-c1nl9rpv"
8-
instance_params = {
9-
"cluster-node-timeout" = "15000"
10-
"disable-command-list" = "\"\""
11-
"hash-max-ziplist-entries" = "512"
12-
"hash-max-ziplist-value" = "64"
13-
"hz" = "10"
14-
"lazyfree-lazy-eviction" = "yes"
15-
"lazyfree-lazy-expire" = "yes"
16-
"lazyfree-lazy-server-del" = "yes"
17-
"maxmemory-policy" = "noeviction"
18-
"notify-keyspace-events" = "\"\""
19-
"proxy-slowlog-log-slower-than" = "500"
20-
"replica-lazy-flush" = "yes"
21-
"sentineauth" = "no"
22-
"set-max-intset-entries" = "512"
23-
"slowlog-log-slower-than" = "10"
24-
"timeout" = "31536000"
25-
"zset-max-ziplist-entries" = "128"
26-
"zset-max-ziplist-value" = "64"
27-
}
6+
resource "tencentcloud_redis_param" "example" {
7+
instance_id = "crs-cqdfdzvt"
8+
instance_params = {
9+
"cluster-node-timeout" = "15000"
10+
"disable-command-list" = "\"\""
11+
"hash-max-ziplist-entries" = "512"
12+
"hash-max-ziplist-value" = "64"
13+
"hz" = "10"
14+
"lazyfree-lazy-eviction" = "yes"
15+
"lazyfree-lazy-expire" = "yes"
16+
"lazyfree-lazy-server-del" = "yes"
17+
"maxmemory-policy" = "noeviction"
18+
"notify-keyspace-events" = "\"\""
19+
"proxy-slowlog-log-slower-than" = "500"
20+
"sentineauth" = "no"
21+
"set-max-intset-entries" = "512"
22+
"slowlog-log-slower-than" = "10"
23+
"timeout" = "31536000"
24+
"zset-max-ziplist-entries" = "128"
25+
"zset-max-ziplist-value" = "64"
26+
}
2827
}
2928
```
3029

@@ -33,5 +32,5 @@ Import
3332
redis param can be imported using the instanceId, e.g.
3433

3534
```
36-
terraform import tencentcloud_redis_param.param crs-c1nl9rpv
35+
terraform import tencentcloud_redis_param.example crs-c1nl9rpv
3736
```

0 commit comments

Comments
 (0)