Skip to content

Commit 2b03b87

Browse files
committed
fix document
1 parent 8afb421 commit 2b03b87

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

examples/tencentcloud-postgresql/main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ resource "tencentcloud_postgresql_instance" "example" {
2020
engine_version = "9.3.5"
2121
root_password = "1qaA2k1wgvfa3ZZZ"
2222
charset = "UTF8"
23-
spec_code = "cdb.pg.z1.2g"
2423
project_id = 0
2524
memory = 2
2625
storage = 10
@@ -34,7 +33,7 @@ data "tencentcloud_postgresql_instances" "project_example" {
3433
project_id = 0
3534
}
3635

37-
data "tencentcloud_postgresql_instances" "charge_example" {
36+
data "tencentcloud_postgresql_instances" "name_example" {
3837
name = tencentcloud_postgresql_instance.example.name
3938
}
4039

tencentcloud/resource_tc_postgresql_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ resource "tencentcloud_postgresql_instance" "foo" {
1313
engine_version = "9.3.5"
1414
root_password = "1qaA2k1wgvfa3ZZZ"
1515
charset = "UTF8"
16-
spec_code = "cdb.pg.z1.2g"
1716
project_id = 0
1817
memory = 2
1918
storage = 100
2019
}
20+
```
2121
2222
Import
2323

website/docs/r/postgresql_instance.html.markdown

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,21 @@ Use this resource to create postgresql instance
1212

1313
## Example Usage
1414

15-
15+
```hcl
16+
resource "tencentcloud_postgresql_instance" "foo" {
17+
name = "example"
18+
availability_zone = var.availability_zone
19+
charge_type = "POSTPAID_BY_HOUR"
20+
vpc_id = "vpc-409mvdvv"
21+
subnet_id = "subnet-nf9n81ps"
22+
engine_version = "9.3.5"
23+
root_password = "1qaA2k1wgvfa3ZZZ"
24+
charset = "UTF8"
25+
project_id = 0
26+
memory = 2
27+
storage = 100
28+
}
29+
```
1630

1731
## Argument Reference
1832

0 commit comments

Comments
 (0)