Cloudflare Hyperdrive Config
Accelerate a Worker's access to a regional SQL database with connection pooling and edge query caching.
What Gets Created
- A
cloudflare_hyperdrive_configpointing at your PostgreSQL or MySQL origin, with optional query caching and mutual-TLS.
Prerequisites
- A Cloudflare account ID.
- A reachable origin database (public, or fronted by Cloudflare Access / a Cloudflare Tunnel).
- The database user's password, stored as a managed secret.
Configuration Reference
Required
accountId— Cloudflare account ID.name— config name.origin.database,origin.scheme,origin.user,origin.password.
Optional
origin.host,origin.port,origin.accessClientId,origin.accessClientSecret.origin.serviceId— Workers VPC Service to egress through (mutually exclusive withmtls).caching.disabled,caching.maxAge,caching.staleWhileRevalidate.mtls.caCertificateId,mtls.mtlsCertificateId,mtls.sslmode.originConnectionLimit.
Stack Outputs
| Output | Description |
|---|---|
hyperdrive_id | The Hyperdrive config ID |
name | The config name |
Related Components
- CloudflareWorker
- CloudflareD1Database
- CloudflareR2Bucket
Next article
Cloudflare KV Namespace
Cloudflare KV Namespace Deploys a Workers KV namespace on Cloudflare. Workers KV is a globally distributed, low-latency key-value store designed for read-heavy workloads at the edge. This component creates a single KV namespace that can be bound to Cloudflare Workers for storing configuration, session data, feature flags, or any other data your edge logic needs. What Gets Created When you deploy a CloudflareKvNamespace resource, Planton provisions: Workers KV Namespace — a...