Connect to a BYOC Warehouse
A bring your own cloud (BYOC) warehouse runs in your cloud account and virtual private cloud (VPC). You control its routing, security groups, network access control lists (network ACLs), load balancers, and public exposure. Use this page when a client in your cloud network needs to connect to the warehouse.
In this example, both clients use the SQL host and port shown on Connect.
Unlike the software as a service (SaaS) Connect page, the BYOC page does not provide Public Endpoint or Private Endpoint tabs. It opens directly at Connect to your warehouse. Before connecting, make sure the client network can reach the displayed host and ports.
Before you begin
- Confirm that the BYOC warehouse is running.
- Confirm that the client can reach the warehouse host and the ports required by the selected connection method through your cloud network.
- Have the warehouse SQL username and password required by your client ready.
- If you use a firewall, security group, network ACL, or load balancer, allow the client traffic to the required host and ports.
Note:
TLS connections, including Stream Load over HTTPS, pass through a load balancer in your cloud account. Your cloud provider may charge for load-balancer data processing and network data transfer. VeloDB Cloud does not collect these charges. See BYOC billing.
Get the connection details
-
Log in to the VeloDB Cloud console.
-
In the upper-left corner, select the BYOC warehouse that you want to use.
-
In the left navigation pane, click Connect.
-
From the connection method dropdown list, choose one of the following methods:
Method Use it to MySQL CLI Connect with the MySQL command-line interface or a MySQL-compatible client. JDBC Connect a Java application or a JDBC-compatible tool. Stream Load Load data over HTTP or HTTPS. MCP Connect a supported Model Context Protocol (MCP) client or agent. Arrow Flight SQL Transfer query results with the Arrow Flight SQL protocol. -
Copy the connection details or generated command, and then configure your client.
For method-specific fields, generated commands, and examples, see Connection Methods.
Connect from another AWS account
If your AWS BYOC warehouse has an internal Network Load Balancer (NLB) for SQL traffic, you can use it to publish a customer-managed AWS PrivateLink endpoint service. The warehouse account manages the service, and the application account manages the interface endpoint. Configure both in AWS.
- In the warehouse account, identify the internal NLB that serves the SQL port shown on Connect. Check that its targets are healthy and review which listeners the application account should be able to reach. In VPC > Endpoint services, create an endpoint service for that NLB and enable Acceptance required. If the NLB already belongs to an endpoint service, confirm that the existing service is suitable before sharing it. See Create an AWS PrivateLink endpoint service.
- In the endpoint service's Allow principals tab, add the ARN of the IAM role that will create the endpoint in the application account. Give the service name and AWS Region to the application administrator. See Manage endpoint service permissions.
- In the application account, use that role to open VPC > Endpoints in the same Region. Create an interface endpoint using the service name. Select the client VPC, a subnet in a supported Availability Zone, and an endpoint security group that allows inbound TCP from the application on the warehouse SQL port.
- In the warehouse account, open Endpoint connections for the service. Match the request to the application account and endpoint ID, then accept it if approval is required. Wait for the endpoint to show Available in the application account.
- From the application VPC, connect using the SQL port and warehouse credentials from Connect. For TLS, configure private DNS in the application VPC so the warehouse hostname shown on Connect resolves to the endpoint's regional DNS name. Use that warehouse hostname in the client. For a warehouse without TLS, use the endpoint's regional DNS name. Run
SELECT 1to verify the connection.
Before removing a warehouse with a dedicated endpoint service, delete the application endpoints and then the endpoint service so AWS can release the warehouse NLB. See Delete an AWS endpoint service.
Access a data source in another AWS account
When a BYOC warehouse initiates the connection, the interface endpoint belongs in the warehouse VPC. The two AWS account administrators configure the connection directly in AWS.
- In the data-source account, publish an endpoint service backed by an internal NLB with a listener for the data-source port and healthy targets. Under Allow principals, add the ARN of the role that will create the endpoint in the BYOC warehouse account. Give the full service name and Region to the warehouse administrator. See Create an AWS PrivateLink endpoint service.
- In the warehouse account, use that role to create an interface endpoint in the warehouse VPC, in the same Region and a subnet supported by the service. Allow traffic from the warehouse subnets to the endpoint on the NLB listener port. Check the warehouse's outbound rules, the endpoint security group's inbound rules, and the network ACLs between the subnets.
- If the service requires acceptance, give the endpoint ID to the data-source administrator to approve in AWS. Once the endpoint is Available, copy its regional DNS name.
- In the warehouse's data-source configuration, use the endpoint DNS name and listener port. If the source requires TLS hostname verification, configure private DNS in the warehouse VPC so that a hostname covered by the source certificate resolves to the endpoint, and use that hostname. For a MySQL or PostgreSQL import, enter the host, port, and source credentials in the import wizard and run its source connection check.
Verify the connection
Run a test query or request from the configured client. If the connection fails, verify that the warehouse is running, the host and port are reachable, the network controls allow the connection, and the credentials are current.