Skip to main content

DigitalOcean Database - Terraform

Requirements

NameVersion
terraform>= 1.9
digitalocean~> 2.40

Providers

NameVersion
digitalocean~> 2.40

Modules

No modules.

Resources

NameType
digitalocean_database_cluster.thisresource
digitalocean_database_connection_pool.thisresource
digitalocean_database_db.thisresource
digitalocean_database_firewall.thisresource
digitalocean_database_kafka_topic.thisresource
digitalocean_database_mysql_config.thisresource
digitalocean_database_postgresql_config.thisresource
digitalocean_database_redis_config.thisresource
digitalocean_database_user.thisresource
digitalocean_database_ca.cadata source

Inputs

NameDescriptionTypeDefaultRequired
configA map of MySQL configuration options.map(string)\{}no
connection_poolThe connection pool configuration for the database cluster.list(any)nullno
databasesA list of databases to create in the cluster.list(string)[]no
db_usersA list of database users to create in the cluster.list(any)[]no
engineThe database engine to use.stringn/ayes
engine_versionThe database engine to use.stringn/ayes
eviction_policyThe eviction policy for the Redis database cluster.stringnullno
firewall_rulesA list of firewall rules to apply to the database cluster.
list(object({
type = string
value = string
}))
[]no
kafka_topicsA list of Kafka topics to create in the cluster.list(any)[]no
maintenance_window_dayThe day of the week for the maintenance window.string"sunday"no
maintenance_window_hourThe hour of the day for the maintenance window.number2no
nameThe name of the database cluster.stringn/ayes
node_countThe number of nodes in the database cluster.number1no
private_network_uuidThe ID of the VPC where the database cluster will be located.stringn/ayes
regionThe region where the database cluster will be created.stringn/ayes
sizeThe size of the database cluster.string"db-s-1vcpu-1gb"no
sql_modeA comma separated string specifying the SQL modes for the MySQL cluster.string"STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION"no
storage_size_mibThe size of the database cluster.number10240no
tagsA list of the tags to be applied to this database cluster.list(string)[]no

Outputs

NameDescription
cluster_ca_certificaten/a
cluster_databasen/a
cluster_idn/a
cluster_namen/a
cluster_passwordn/a
cluster_portn/a
cluster_private_hostn/a
cluster_public_hostn/a
cluster_urin/a
cluster_urnn/a
cluster_usernamen/a