You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -68,12 +64,252 @@ This module has a few dependencies:
68
64
## Examples
69
65
70
66
71
-
**IMPORTANT:** Since the `master` branch used in `source` varies based on new modifications, we suggest that you use the release versions [here](https://github.com/clouddrove/terraform-module-template/releases).
67
+
**IMPORTANT:** Since the `master` branch used in `source` varies based on new modifications, we suggest that you use the release versions [here](https://github.com/clouddrove/terraform-module-database/releases).
72
68
73
69
74
-
Here are some examples of how you can use this module in your inventory structure:
70
+
Here are examples of how you can use this module in your inventory structure:
| backup\_restore | The day and the start hour of the maintenance window policy |`map(string)`|`null`| no |
324
+
| cluster\_engine | Database engine used by the cluster (ex. pg for PostreSQL, mysql for MySQL, redis for Redis, or mongodb for MongoDB) |`string`|`""`| no |
325
+
| cluster\_maintenance | The day and the start hour of the maintenance window policy |`map(string)`|`null`| no |
326
+
| cluster\_node\_count | Number of nodes that will be included in the cluster |`number`|`1`| no |
327
+
| cluster\_private\_network\_uuid | The ID of the VPC where the database cluster will be located |`string`|`null`| no |
328
+
| cluster\_size | Database Droplet size associated with the cluster (ex. db-s-1vcpu-1gb) |`string`|`"db-s-1vcpu-1gb"`| no |
329
+
| cluster\_version | The version of the cluster |`string`|`""`| no |
330
+
| create\_firewall | Controls if firewall should be created |`bool`|`false`| no |
331
+
| create\_pools | Controls if pools should be created |`bool`|`false`| no |
332
+
| databases | A list of databases in the cluster |`list(string)`|`[]`| no |
333
+
| enabled | Flag to control the resources creation. |`bool`|`true`| no |
| firewall\_rules | List of firewall rules associated with the cluster |`list(map(string))`|`[]`| no |
336
+
| label\_order | Label order, e.g. `name`,`application`. |`list(any)`| <pre>[<br> "name",<br> "environment"<br>]</pre> | no |
337
+
| managedby | ManagedBy, eg 'terraform-do-modules' or '[email protected]' |`string`|`"terraform-do-modules"`| no |
338
+
| mysql\_sql\_mode | A comma separated string specifying the SQL modes for a MySQL cluster. |`string`|`null`| no |
339
+
| name | Name (e.g. `app` or `cluster`). |`string`|`""`| no |
340
+
| pools | A list of connection pools in the cluster |`list(map(string))`|`null`| no |
341
+
| project\_id | The ID of the project that the database cluster is assigned to. If excluded when creating a new database cluster, it will be assigned to your default project. |`string`|`null`| no |
342
+
| redis\_eviction\_policy | A string specifying the eviction policy for a Redis cluster. Valid values are: noeviction, allkeys\_lru, allkeys\_random, volatile\_lru, volatile\_random, or volatile\_ttl |`string`|`null`| no |
343
+
| region | DigitalOcean region where the cluster will reside |`string`|`null`| no |
344
+
| replica\_enable | Flag to control the resources creation. |`bool`|`false`| no |
345
+
| replica\_region | DigitalOcean region where the replica will reside |`string`|`null`| no |
346
+
| replica\_size | Database Droplet size associated with the replica (ex. db-s-1vcpu-1gb). Note that when resizing an existing replica, its size can only be increased. Decreasing its size is not supported. |`string`|`"db-s-1vcpu-1gb"`| no |
347
+
| users | A list of users in the cluster |`list(map(string))`|`null`| no |
86
348
87
349
## Outputs
88
350
89
-
No output.
351
+
| Name | Description |
352
+
|------|-------------|
353
+
| connection\_pool\_host | The hostname used to connect to the database connection pool |
354
+
| connection\_pool\_id | The ID of the database connection pool |
355
+
| connection\_pool\_password | Password for the connection pool's user |
356
+
| connection\_pool\_port | Network port that the database connection pool is listening on |
357
+
| connection\_pool\_private\_host | Same as pool host, but only accessible from resources within the account and in the same region |
358
+
| connection\_pool\_private\_uri | Same as pool uri, but only accessible from resources within the account and in the same region |
359
+
| connection\_pool\_uri | The full URI for connecting to the database connection pool |
360
+
| database\_cluster\_default\_database | Name of the cluster's default database |
361
+
| database\_cluster\_default\_password | Password for the cluster's default user |
362
+
| database\_cluster\_default\_user | Username for the cluster's default user |
363
+
| database\_cluster\_host | The hostname of the database cluster |
364
+
| database\_cluster\_id | The id of the database cluster |
365
+
| database\_cluster\_port | Network port that the database cluster is listening on |
366
+
| database\_cluster\_private\_host | Same as host, but only accessible from resources within the account and in the same region |
367
+
| database\_cluster\_uri | The full URI for connecting to the database cluster |
368
+
| database\_cluster\_urn | The uniform resource name of the database cluster |
369
+
| database\_firewall\_id | A unique identifier for the firewall |
370
+
| database\_firewall\_rule | A map with rule's uuid, type, value and created\_at params |
371
+
| database\_replica\_firewall\_rule | A map with rule's uuid, type, value and created\_at params |
372
+
| db\_name | The name for the database |
373
+
| replica\_cluster\_default\_database | Name of the replica's default database. |
374
+
| replica\_cluster\_default\_password | Password for the replica cluster's default user |
375
+
| replica\_cluster\_default\_user | Username for the replica cluster's default user |
376
+
| replica\_cluster\_port | Network port that the database replica is listening on. |
377
+
| replica\_cluster\_private\_host | Same as host, but only accessible from resources within the account and in the same region. |
378
+
| replica\_cluster\_uri | The full URI for connecting to the database replica. |
379
+
| replica\_host\_name | The ID of the database replica created by Terraform. |
380
+
| replica\_id | The ID of the database replica created by Terraform. |
381
+
| user\_password | Password for the database user |
382
+
| user\_role | Role for the database user |
90
383
91
384
92
385
@@ -102,9 +395,9 @@ You need to run the following command in the testing folder:
102
395
103
396
104
397
## Feedback
105
-
If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/terraform-module-template/issues), or feel free to drop us an email at [[email protected]](mailto:[email protected]).
398
+
If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/terraform-module-database/issues), or feel free to drop us an email at [[email protected]](mailto:[email protected]).
106
399
107
-
If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/terraform-module-template)!
400
+
If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/terraform-module-database)!
0 commit comments