Skip to content

Commit 84e8ad7

Browse files
authored
Merge pull request #2459 from tencentcloudstack/fix/crs-mem_size
fix: add me mmem_size enum
2 parents 1be6cc9 + c5f6872 commit 84e8ad7

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.changelog/2459.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/resource_tc_redis_instance: Increase `mem_size` optional value
3+
```

tencentcloud/services/crs/resource_tc_redis_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func ResourceTencentCloudRedisInstance() *schema.Resource {
118118
"mem_size": {
119119
Type: schema.TypeInt,
120120
Required: true,
121-
ValidateFunc: tccommon.ValidateAllowedIntValue([]int{1024, 2048, 4096, 8192, 12288, 16384, 20480, 24576, 32768, 40960, 49152, 65536}),
121+
ValidateFunc: tccommon.ValidateAllowedIntValue([]int{256, 1024, 2048, 4096, 8192, 12288, 16384, 20480, 24576, 32768, 40960, 49152, 65536}),
122122
Description: "The memory volume of an available instance(in MB), please refer to `tencentcloud_redis_zone_config.list[zone].shard_memories`. When redis is standard type, it represents total memory size of the instance; when Redis is cluster type, it represents memory size of per sharding.",
123123
},
124124
"vpc_id": {

0 commit comments

Comments
 (0)