database-cluster
devdynamicio/database-cluster/digitalocean
Terraform module for create DigitalOcean database cluster resource πΊπ¦
Digitalocean Database cluster Terraform module Terraform Module for create DigitalOcean Database service.  Requirements This module requires Terraform version 0.13.0 or newer. Examples ``hcl module "do_redis" { source = "../../" name = "do-redis" engine = "redis" database_version = 6 region = "fra1" node_count = 1 } ` Requirements | Name | Version | |------|---------| | terraform | >= 0.13.0 | | digitalocean | >= 2.19.0 | Providers | Name | Version | |------|---------| | digitalocean | >= 2.19.0 | Modules No modules. Resources | Name | Type | |------|------| | digitalocean_database_cluster.this | resource | Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:-
| Name | Type | Description | Default |
|---|---|---|---|
| engine | string | Database engine used by the cluster (ex. pg for PostreSQL, mysql for MySQL, redi | required |
| node_count | number | Number of nodes that will be included in the cluster. | required |
| private_network_uuid | string | The ID of the VPC where the database cluster will be located. | required |
| name | string | The name of the database cluster. | required |
| region | string | DigitalOcean region where the cluster will reside. | required |
| database_version | number | Engine version used by the cluster (ex. 11 for PostgreSQL 11). | required |
| eviction_policy | string | A string specifying the eviction policy for a Redis cluster. Valid values are: n | required |
| sql_mode | string | A comma separated string specifying the SQL modes for a MySQL cluster. | required |
| maintenance_window | object({ day = string | Defines when the automatic maintenance should be performed for the database clus | {
"day": "tuesday",
"hour": "01:00:0 |
| size | string | Database Droplet size associated with the cluster (ex. db-s-1vcpu-1gb). | "db-s-1vcpu-1gb" |
| tags | list(string) | A list of tag names to be applied to the database cluster. | [] |
user β Username for the cluster's default user.password β Password for the cluster's default user.private_host β Same as host, but only accessible from resources within the account and in the same region.database β Name of the cluster's default database.host β Database cluster's hostname.port β Network port that the database cluster is listening on.uri β The full URI for connecting to the database cluster.private_uri β Same as uri, but only accessible from resources within the account and in the same region.id β The ID of the database cluster.urn β The uniform resource name of the database cluster.