digitalocean_database_postgresql_config

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

Example Usage

resource "digitalocean_database_postgresql_config" "example" {
  cluster_id = digitalocean_database_cluster.example.id
  timezone   = "UTC"
  work_mem   = 16
}

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

terraform import digitalocean_database_postgresql_config.example 52556c07-788e-4d41-b8a7-c796432197d1