Skip to content

Commit b46b92a

Browse files
authored
fix: postgresql - change available versions (#765)
1 parent f1d6380 commit b46b92a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

tencentcloud/resource_tc_postgresql_instance.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ resource "tencentcloud_postgresql_instance" "foo" {
3030
charge_type = "POSTPAID_BY_HOUR"
3131
vpc_id = tencentcloud_vpc.vpc.id
3232
subnet_id = tencentcloud_subnet.subnet.id
33-
engine_version = "9.3.5"
33+
engine_version = "10.4"
3434
root_user = "root123"
3535
root_password = "Root123$"
3636
charset = "UTF8"
@@ -96,8 +96,8 @@ func resourceTencentCloudPostgresqlInstance() *schema.Resource {
9696
Type: schema.TypeString,
9797
ForceNew: true,
9898
Optional: true,
99-
Default: "9.3.5",
100-
Description: "Version of the postgresql database engine. Valid values: `9.3.5`, `9.5.4`, `10.4`.",
99+
Default: "10.4",
100+
Description: "Version of the postgresql database engine. Valid values: `10.4`, `11.8`, `12.4`.",
101101
},
102102
"vpc_id": {
103103
Type: schema.TypeString,

tencentcloud/resource_tc_postgresql_instance_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ resource "tencentcloud_postgresql_instance" "test" {
136136
charge_type = "POSTPAID_BY_HOUR"
137137
vpc_id = "` + defaultVpcId + `"
138138
subnet_id = "subnet-pyio7yog"
139-
engine_version = "9.3.5"
139+
engine_version = "10.4"
140140
root_password = "1qaA2k1wgvfa3ZZZ"
141141
charset = "LATIN1"
142142
project_id = 0
@@ -156,7 +156,7 @@ resource "tencentcloud_postgresql_instance" "test" {
156156
charge_type = "POSTPAID_BY_HOUR"
157157
vpc_id = "` + defaultVpcId + `"
158158
subnet_id = "subnet-pyio7yog"
159-
engine_version = "9.3.5"
159+
engine_version = "10.4"
160160
root_password = "1qaA2k1wgvfa3ZZZZ"
161161
charset = "LATIN1"
162162
project_id = 1154137

website/docs/r/postgresql_instance.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ resource "tencentcloud_postgresql_instance" "foo" {
4040
charge_type = "POSTPAID_BY_HOUR"
4141
vpc_id = tencentcloud_vpc.vpc.id
4242
subnet_id = tencentcloud_subnet.subnet.id
43-
engine_version = "9.3.5"
43+
engine_version = "10.4"
4444
root_user = "root123"
4545
root_password = "Root123$"
4646
charset = "UTF8"
@@ -65,7 +65,7 @@ The following arguments are supported:
6565
* `availability_zone` - (Optional, ForceNew) Availability zone.
6666
* `charge_type` - (Optional, ForceNew) Pay type of the postgresql instance. For now, only `POSTPAID_BY_HOUR` is valid.
6767
* `charset` - (Optional, ForceNew) Charset of the root account. Valid values are `UTF8`,`LATIN1`.
68-
* `engine_version` - (Optional, ForceNew) Version of the postgresql database engine. Valid values: `9.3.5`, `9.5.4`, `10.4`.
68+
* `engine_version` - (Optional, ForceNew) Version of the postgresql database engine. Valid values: `10.4`, `11.8`, `12.4`.
6969
* `project_id` - (Optional) Project id, default value is `0`.
7070
* `public_access_switch` - (Optional) Indicates whether to enable the access to an instance from public network or not.
7171
* `root_user` - (Optional, ForceNew) Instance root account name. This parameter is optional, Default value is `root`.

0 commit comments

Comments
 (0)