File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed
examples/tencentcloud-postgresql Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
2222Import
2323
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments