Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dds flavor support update #1300

Merged
merged 1 commit into from
Jul 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
8 changes: 2 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +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-20210706092920-c12079d6a740 h1:RCAJI5jVLah5GJkr1lk9I0g6+PdTjUMCwzY5pUUd7fA=
github.com/huaweicloud/golangsdk v0.0.0-20210706092920-c12079d6a740/go.mod h1:fcOI5u+0f62JtJd7zkCch/Z57BNC6bhqb32TKuiF4r0=
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