Skip to content

Commit

Permalink
Update docs and CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions committed Jul 11, 2023
1 parent ebf0ba6 commit 816a9c9
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions docs/data-sources/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions docs/data-sources/database_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 10 additions & 0 deletions docs/resources/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 816a9c9

Please sign in to comment.