Skip to content

fix(cynosdb): [118407929] supprot slave_zone #2711

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

Merged
merged 2 commits into from
Jul 22, 2024
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
3 changes: 3 additions & 0 deletions .changelog/2711.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/tencentcloud_cynosdb_cluster: add `slave_zone` param
```
26 changes: 20 additions & 6 deletions tencentcloud/services/cynosdb/extension_cynosdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func TencentCynosdbClusterBaseInfo() map[string]*schema.Schema {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: "Version of CynosDB, which is related to `db_type`. For `MYSQL`, available value is `5.7`.",
Description: "Version of CynosDB, which is related to `db_type`. For `MYSQL`, available value is `5.7`, `8.0`.",
},
"storage_limit": {
Type: schema.TypeInt,
Expand Down Expand Up @@ -342,7 +342,7 @@ func TencentCynosdbClusterBaseInfo() map[string]*schema.Schema {
"param_items": {
Type: schema.TypeList,
Optional: true,
Description: "Specify parameter list of database. It is valid when prarm_template_id is set in create cluster. Use `data.tencentcloud_mysql_default_params` to query available parameter details.",
Description: "Specify parameter list of database. It is valid when `param_template_id` is set in create cluster. Use `data.tencentcloud_mysql_default_params` to query available parameter details.",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"name": {
Expand All @@ -364,10 +364,19 @@ func TencentCynosdbClusterBaseInfo() map[string]*schema.Schema {
},
},
"prarm_template_id": {
Type: schema.TypeInt,
Optional: true,
Computed: true,
Description: "The ID of the parameter template.",
Type: schema.TypeInt,
Optional: true,
Computed: true,
ConflictsWith: []string{"param_template_id"},
Deprecated: "It will be deprecated. Use `param_template_id` instead.",
Description: "The ID of the parameter template.",
},
"param_template_id": {
Type: schema.TypeInt,
Optional: true,
Computed: true,
ConflictsWith: []string{"prarm_template_id"},
Description: "The ID of the parameter template.",
},
"db_mode": {
Type: schema.TypeString,
Expand All @@ -394,6 +403,11 @@ func TencentCynosdbClusterBaseInfo() map[string]*schema.Schema {
Optional: true,
Description: "Specify auto-pause delay in second while `db_mode` is `SERVERLESS`. Value range: `[600, 691200]`. Default: `600`.",
},
"slave_zone": {
Type: schema.TypeString,
Optional: true,
Description: "Multi zone Addresses of the CynosDB Cluster.",
},
"serverless_status_flag": {
Type: schema.TypeString,
Optional: true,
Expand Down
Loading
Loading