digitalocean_database_redis_config

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

Example Usage

resource "digitalocean_database_redis_config" "example" {
  cluster_id             = digitalocean_database_cluster.example.id
  maxmemory_policy       = "allkeys-lru"
  notify_keyspace_events = "KEA"
  timeout                = 90
}

resource "digitalocean_database_cluster" "example" {
  name       = "example-redis-cluster"
  engine     = "redis"
  version    = "7"
  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 Redis database cluster's configuration can be imported using the id the parent cluster, e.g.

terraform import digitalocean_database_redis_config.example 245bcfd0-7f31-4ce6-a2bc-475a116cca97