Hyperdrive support for private databases with Workers VPC
Key Points
- Hyperdrive now connects to private databases via Workers VPC
- Reusable VPC services across multiple Hyperdrive configurations
- Dashboard and CLI support for easy configuration
Summary
Hyperdrive now supports connecting to private databases through Workers VPC service. This is the recommended approach for accessing private databases not exposed to the public Internet.
Key Points
- Connect Hyperdrive to private databases via Workers VPC in the Cloudflare dashboard by selecting "Connect to private database" and then "Workers VPC"
- Create configurations inline by selecting a Cloudflare Tunnel and specifying origin host and TCP port
- Use CLI to create Hyperdrive configurations with
wrangler hyperdrive createcommand, specifying VPC service ID, database credentials, and connection scheme - Workers VPC services are reusable across multiple Hyperdrive configurations and can be bound directly to Workers for shared private connections
- Eliminates need to expose databases to public Internet while maintaining secure connectivity