cloudflare_hyperdrive_config (Resource)

The Hyperdrive Config resource allows you to manage Cloudflare Hyperdrive Configs.

Example Usage

resource "cloudflare_hyperdrive_config" "no_defaults" {
  account_id = "f037e56e89293a057740de681ac9abbe"
  name       = "my-hyperdrive-config"
  origin = {
    database = "postgres"
    password = "my-password"
    host     = "my-database.example.com"
    port     = 5432
    scheme   = "postgres"
    user     = "my-user"
  }
}

Schema

Required

Optional

Nested Schema for origin

Required:

Nested Schema for caching

Optional:

Import

Import is supported using the following syntax:

$ terraform import cloudflare_hyperdrive_config.example <account_id>/<hyperdrive_config_id>