Hyperdrive
HyperdriveConfigs
resource cloudflare_hyperdrive_config
required
optional
origin_connection_limit?: Int64
The (soft) maximum number of connections the Hyperdrive is allowed to make to the origin database.
Maximum allowed: 20 for free tier accounts, 100 for paid tier accounts. If not specified, defaults to 20 for free tier and 60 for paid tier. Contact Cloudflare if you need a higher limit.
cloudflare_hyperdrive_config
resource "cloudflare_hyperdrive_config" "example_hyperdrive_config" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
name = "example-hyperdrive"
origin = {
database = "postgres"
host = "database.example.com"
password = "password"
port = 5432
scheme = "postgres"
user = "postgres"
}
caching = {
disabled = true
}
mtls = {
ca_certificate_id = "00000000-0000-0000-0000-0000000000"
mtls_certificate_id = "00000000-0000-0000-0000-0000000000"
sslmode = "verify-full"
}
origin_connection_limit = 60
}
data cloudflare_hyperdrive_config
required
computed
name: String
The name of the Hyperdrive configuration. Used to identify the configuration in the Cloudflare dashboard and API.
origin_connection_limit: Int64
The (soft) maximum number of connections the Hyperdrive is allowed to make to the origin database.
Maximum allowed: 20 for free tier accounts, 100 for paid tier accounts. If not specified, defaults to 20 for free tier and 60 for paid tier. Contact Cloudflare if you need a higher limit.
cloudflare_hyperdrive_config
data "cloudflare_hyperdrive_config" "example_hyperdrive_config" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
hyperdrive_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
data cloudflare_hyperdrive_configs
cloudflare_hyperdrive_configs
data "cloudflare_hyperdrive_configs" "example_hyperdrive_configs" {
account_id = "023e105f4ecef8ad9ca31a8372d0c353"
}