Aptible Deploy

Database Tunnels

Database Tunnels are ephemeral connections created between your local workstation and a Database running on Aptible Deploy.

To create a Database Tunnel, use the aptible db:tunnel command.

️ Warning

A Database Tunnel listens on localhost, and instructs you to connect via the host name localhost.aptible.in. Be aware that some software may make assumptions about this database based on the host name or IP, with possible consequences such as bypassing safeguards for running against a remote (production) database.

Use Cases

Database tunnels are the most convenient way to get ad-hoc access to your database. However, tunnels time out after 24 hours so they're not ideal for long-term access or integrations. For those, you'll be better suited by Database Endpoints.

Updated 2 months ago

Database Tunnels

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.