digitalocean_database_mysql_config

Provides a virtual resource that can be used to change advanced configuration options for a DigitalOcean managed MySQL database cluster.

Example Usage

resource "digitalocean_database_mysql_config" "example" {
  cluster_id        = digitalocean_database_cluster.example.id
  connect_timeout   = 10
  default_time_zone = "UTC"
}

resource "digitalocean_database_cluster" "example" {
  name       = "example-mysql-cluster"
  engine     = "mysql"
  version    = "8"
  size       = "db-s-1vcpu-1gb"
  region     = "nyc1"
  node_count = 1
}

Argument Reference

The following arguments are supported. See the DigitalOcean API documentation for additional details on each option.

Attributes Reference

All above attributes are exported. If an attribute was set outside of Terraform, it will be computed.

Import

A MySQL database cluster's configuration can be imported using the id the parent cluster, e.g.

terraform import digitalocean_database_mysql_config.example 4b62829a-9c42-465b-aaa3-84051048e712