You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tencentcloud/basic_test.go
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -725,6 +725,10 @@ locals {
725
725
// End of TKE Service
726
726
727
727
// MongoDB
728
+
const (
729
+
defaultMongoDBVPCId="vpc-rwj54lfr"
730
+
defaultMongoDBSubnetId="subnet-nyt57zps"
731
+
)
728
732
constdefaultMongoDBSecurityGroupId="sg-if748odn"
729
733
constDefaultMongoDBSpec=`
730
734
data "tencentcloud_mongodb_zone_config" "zone_config" {
@@ -741,6 +745,12 @@ variable "engine_versions" {
741
745
variable "sg_id" {
742
746
default = "`+defaultMongoDBSecurityGroupId+`"
743
747
}
748
+
variable "vpc_id" {
749
+
default = "`+defaultMongoDBVPCId+`"
750
+
}
751
+
variable "subnet_id" {
752
+
default = "`+defaultMongoDBSubnetId+`"
753
+
}
744
754
745
755
locals {
746
756
filtered_spec = [for i in data.tencentcloud_mongodb_zone_config.zone_config.list: i if lookup(i, "machine_type") == "HIO10G" && lookup(i, "engine_version") != "3.2"]
Description: "Number of nodes per shard, at least 3(one master and two slaves).",
66
66
},
67
+
"availability_zone_list": {
68
+
Type: schema.TypeList,
69
+
Optional: true,
70
+
Computed: true,
71
+
Elem: &schema.Schema{
72
+
Type: schema.TypeString,
73
+
},
74
+
RequiredWith: []string{"hidden_zone"},
75
+
Description: `A list of nodes deployed in multiple availability zones. For more information, please use the API DescribeSpecInfo.
76
+
- Multi-availability zone deployment nodes can only be deployed in 3 different availability zones. It is not supported to deploy most nodes of the cluster in the same availability zone. For example, a 3-node cluster does not support the deployment of 2 nodes in the same zone.
77
+
- Version 4.2 and above are not supported.
78
+
- Read-only disaster recovery instances are not supported.
79
+
- Basic network cannot be selected.`,
80
+
},
81
+
"hidden_zone": {
82
+
Type: schema.TypeString,
83
+
Optional: true,
84
+
Computed: true,
85
+
RequiredWith: []string{"availability_zone_list"},
86
+
Description: "The availability zone to which the Hidden node belongs. This parameter must be configured to deploy instances across availability zones.",
87
+
},
67
88
}
68
89
basic:=TencentMongodbBasicInfo()
69
90
fork, v:=rangebasic {
@@ -166,6 +187,13 @@ func mongodbAllShardingInstanceReqSet(requestInter interface{}, d *schema.Resour
0 commit comments