Skip to content

Commit

Permalink
dds flavor support update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason-Zhang9309 committed Jul 22, 2021
1 parent 2c64275 commit abb4a9f
Show file tree
Hide file tree
Showing 11 changed files with 699 additions and 145 deletions.
9 changes: 6 additions & 3 deletions docs/resources/dds_instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,24 +139,27 @@ The `flavor` block supports:
* For a Community Edition replica set instance, the value is replica.
* For a Community Edition single node instance, the value is single.

* `num` - (Required, Int, ForceNew) Specifies the node quantity. Valid value:
* `num` - (Required, Int) Specifies the node quantity. Valid value:
* In a Community Edition cluster instance,the number of mongos ranges from 2 to 16.
* In a Community Edition cluster instance,the number of shards ranges from 2 to 16.
* In an Enhanced Edition cluster instance, the number of shards ranges from 2 to 12.
* config: the value is 1.
* replica: the value is 1.
* single: The value is 1.
This parameter can be updated when the value of `type` is mongos or shard.

* `storage` - (Optional, String, ForceNew) Specifies the disk type. Valid value: ULTRAHIGH which indicates the type SSD.

* `size` - (Optional, Int, ForceNew) Specifies the disk size. The value must be a multiple of 10. The unit is GB.
* `size` - (Optional, Int) Specifies the disk size. The value must be a multiple of 10. The unit is GB.
This parameter is mandatory for nodes except mongos and invalid for mongos.
This parameter can be updated when the value of `type` is shard, replica or single.

* `spec_code` - (Required, String, ForceNew) Specifies the resource specification code. In a cluster instance,
* `spec_code` - (Required, String) Specifies the resource specification code. In a cluster instance,
multiple specifications need to be specified. All specifications must be of the same series,
that is, general-purpose (s6), enhanced (c3), or enhanced II (c6). For example:
* dds.mongodb.s6.large.4.mongos and dds.mongodb.s6.large.4.config have the same specifications.
* dds.mongodb.s6.large.4.mongos and dds.mongodb.c3.large.4.config are not of the same specifications.
This parameter can be updated when the value of `type` is mongos, shard, replica or single.

The `backup_strategy ` block supports:

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/hashicorp/errwrap v1.0.0
github.com/hashicorp/go-multierror v1.0.0
github.com/hashicorp/terraform-plugin-sdk v1.16.0
github.com/huaweicloud/golangsdk v0.0.0-20210715061636-f0d85a483f0b
github.com/huaweicloud/golangsdk v0.0.0-20210721120754-82d566870da2
github.com/jen20/awspolicyequivalence v1.1.0
github.com/smartystreets/goconvey v0.0.0-20190222223459-a17d461953aa // indirect
github.com/stretchr/testify v1.4.0
Expand Down
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,8 @@ github.com/hashicorp/terraform-svchost v0.0.0-20191011084731-65d371908596/go.mod
github.com/hashicorp/yamux v0.0.0-20180604194846-3520598351bb/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM=
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d h1:kJCB4vdITiW1eC1vq2e6IsrXKrZit1bv/TDYFGMp4BQ=
github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM=
github.com/huaweicloud/golangsdk v0.0.0-20210714031135-2f101c51a35d h1:GJFDZ3hxptdDs10RjT1+Tq4oDsWXu+e2yNoHzLRgJ38=
github.com/huaweicloud/golangsdk v0.0.0-20210714031135-2f101c51a35d/go.mod h1:fcOI5u+0f62JtJd7zkCch/Z57BNC6bhqb32TKuiF4r0=
github.com/huaweicloud/golangsdk v0.0.0-20210715061636-f0d85a483f0b h1:s3ZJgf61mC4EaZp3OEMrC7hbZixXMr9JbFL5cgATB/o=
github.com/huaweicloud/golangsdk v0.0.0-20210715061636-f0d85a483f0b/go.mod h1:fcOI5u+0f62JtJd7zkCch/Z57BNC6bhqb32TKuiF4r0=
github.com/huaweicloud/golangsdk v0.0.0-20210721120754-82d566870da2 h1:dBwVW7sDLvSIqCG8hOFQoXW0nee30Kp4WMGAKwI37Lg=
github.com/huaweicloud/golangsdk v0.0.0-20210721120754-82d566870da2/go.mod h1:fcOI5u+0f62JtJd7zkCch/Z57BNC6bhqb32TKuiF4r0=
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
github.com/imdario/mergo v0.3.9 h1:UauaLniWCFHWd+Jp9oCEkTBj8VO/9DKg3PV3VCNMDIg=
github.com/imdario/mergo v0.3.9/go.mod h1:2EnlNZ0deacrJVfApfmtdGgDfMuh/nq6Ok1EcJh5FfA=
Expand Down
Loading

0 comments on commit abb4a9f

Please sign in to comment.