diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a0b50cf..ad72640b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ +## [v1.0.35](https://github.com/civo/terraform-provider-civo/releases/tag/v1.0.35) (11 July 2023) + +### Merged +- [#182](https://github.com/civo/terraform-provider-civo/pull/182) - Fix the doc for database and add extra field + ## [v1.0.34](https://github.com/civo/terraform-provider-civo/releases/tag/v1.0.34) (12 June 2023) ### Merged diff --git a/docs/data-sources/database.md b/docs/data-sources/database.md index 91f8bcc0..aae5a518 100644 --- a/docs/data-sources/database.md +++ b/docs/data-sources/database.md @@ -33,11 +33,14 @@ data "civo_database" "test" { ### Read-Only +- `dns_endpoint` (String) The DNS endpoint of the database +- `endpoint` (String) The endpoint of the database - `engine` (String) The engine of the database - `firewall_id` (String) The firewall id of the Database - `network_id` (String) The network id of the Database - `nodes` (Number) Count of nodes - `password` (String) The password of the database +- `port` (Number) The port of the database - `size` (String) Size of the database - `status` (String) The status of the database - `username` (String) The username of the database diff --git a/docs/data-sources/database_version.md b/docs/data-sources/database_version.md index 4ebc16ce..aa0465b6 100644 --- a/docs/data-sources/database_version.md +++ b/docs/data-sources/database_version.md @@ -29,6 +29,18 @@ data civo_database_version "postgresql" { } } +data "civo_size" "small" { + filter { + key = "name" + values = ["db.small"] + match_by = "re" + } + filter { + key = "type" + values = ["database"] + } +} + # To use this data source, make sure you have a database cluster created. resource "civo_database" "custom_database" { name = "custom_database" diff --git a/docs/resources/database.md b/docs/resources/database.md index eb17045c..d89010c4 100644 --- a/docs/resources/database.md +++ b/docs/resources/database.md @@ -25,6 +25,13 @@ data "civo_size" "small" { } } +data civo_database_version "mysql" { + filter { + key = "engine" + values = ["mysql"] + } +} + resource "civo_database" "custom_database" { name = "custom_database" size = element(data.civo_size.small.sizes, 0).name @@ -54,8 +61,11 @@ resource "civo_database" "custom_database" { ### Read-Only +- `dns_endpoint` (String) The DNS endpoint of the database +- `endpoint` (String) The endpoint of the database - `id` (String) The ID of this resource. - `password` (String) The password of the database +- `port` (Number) The port of the database - `status` (String) The status of the database - `username` (String) The username of the database