|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "postgresql Provider" |
| 4 | +subcategory: "" |
| 5 | +description: |- |
| 6 | + Yet another Terraform provider for PostgreSQL. This one is built using the latest and suggested practices for |
| 7 | + Terraform providers. That means it is built using the (Terraform Plugin Framework)[https://developer.hashicorp.com/terraform/plugin/framework]. |
| 8 | + ❗ READ BEFORE USE |
| 9 | + This provider is still in development and has a limited support for PostgreSQL resources.Check the 🏁 Roadmap for the list of supported resources. |
| 10 | + 🏁 Roadmap |
| 11 | + | Name | Resource | Data Source | |
| 12 | + |---------------|:--------:|:-----------:| |
| 13 | + | Event Trigger | ✅ | ✅ | |
| 14 | + | Functions | 🔜 | 🔜 | |
| 15 | + | Database | 🔜 | 🔜 | |
| 16 | + | Schema | 🔜 | 🔜 | |
| 17 | + | Role | 🔜 | 🔜 | |
| 18 | +--- |
| 19 | + |
| 20 | +# postgresql Provider |
| 21 | + |
| 22 | +Yet another Terraform provider for PostgreSQL. This one is built using the latest and suggested practices for |
| 23 | +Terraform providers. That means it is built using the (Terraform Plugin Framework)[https://developer.hashicorp.com/terraform/plugin/framework]. |
| 24 | + |
| 25 | +## ❗ READ BEFORE USE |
| 26 | + |
| 27 | +* This provider is still in development and has a limited support for PostgreSQL resources. |
| 28 | +* Check the [🏁 Roadmap](#-roadmap) for the list of supported resources. |
| 29 | + |
| 30 | +## 🏁 Roadmap |
| 31 | + |
| 32 | +| Name | Resource | Data Source | |
| 33 | +|---------------|:--------:|:-----------:| |
| 34 | +| Event Trigger | ✅ | ✅ | |
| 35 | +| Functions | 🔜 | 🔜 | |
| 36 | +| Database | 🔜 | 🔜 | |
| 37 | +| Schema | 🔜 | 🔜 | |
| 38 | +| Role | 🔜 | 🔜 | |
| 39 | + |
| 40 | +## Example Usage |
| 41 | + |
| 42 | +```terraform |
| 43 | +terraform { |
| 44 | + required_providers { |
| 45 | + postgresql = { |
| 46 | + source = "registry.terraform.io/inventium-tech/postgresql" |
| 47 | + } |
| 48 | + } |
| 49 | +} |
| 50 | +
|
| 51 | +provider "postgresql" { |
| 52 | + host = "localhost" |
| 53 | + port = 5432 |
| 54 | + username = "postgres" |
| 55 | + password = "password" |
| 56 | +} |
| 57 | +``` |
| 58 | + |
| 59 | +<!-- schema generated by tfplugindocs --> |
| 60 | +## Schema |
| 61 | + |
| 62 | +### Optional |
| 63 | + |
| 64 | +- `database` (String) The name of the PostgreSQL database to connect to. |
| 65 | +- `host` (String) The hostname of the PostgreSQL server. Default is 5432) |
| 66 | +- `max_idle_conn` (Number) Maximum number of idle connections to the database. Default is 5. |
| 67 | +- `max_open_conn` (Number) Maximum number of open connections to the database. Default is 0. |
| 68 | +- `password` (String, Sensitive) The password to use when connecting to the PostgreSQL server. |
| 69 | +- `port` (Number) The port of the PostgreSQL server. |
| 70 | +- `scheme` (String) The schema to use when connecting to the PostgreSQL database. The value must be one of the following: |
| 71 | + * 'postgres' |
| 72 | + * 'gcppostgres' |
| 73 | + * 'awspostgres' |
| 74 | +- `sslmode` (String) The SSL mode to use when connecting to the PostgreSQL server. The value must be one of the following: |
| 75 | + * 'disable' (No SSL) |
| 76 | + * 'require' (*default*. Always SSL, skip verification) |
| 77 | + * 'verify-ca' (Always SSL, verify that the server certificate is issued by a trusted CA) |
| 78 | + * 'verify-full' (Always SSL, *same as 'verify-ca', plus the server host name matches the one in the certificate) |
| 79 | +- `username` (String) The username to use when connecting to the PostgreSQL server. |
0 commit comments