Skip to main content

Grant VeloDB Cloud Access to Your VPC on AWS

Software as a Service

Use this guide when a software as a service (SaaS) warehouse needs to access a private data source in your Amazon Web Services (AWS) virtual private cloud (VPC), such as PostgreSQL, MySQL, Kafka, or another Transmission Control Protocol (TCP) service used by import or integration jobs.

The warehouse initiates the connection. VeloDB Cloud creates an interface endpoint in its managed AWS network. In the AWS account that hosts the data source, you publish an endpoint service backed by a Network Load Balancer (NLB). The NLB forwards connections to the source on its listener port.

If the warehouse runs in your own AWS account, follow the BYOC cross-account instructions.

Prerequisites​

  • The private data source is reachable from the VPC and subnets where the NLB is deployed.
  • You have permission to create or manage target groups, Network Load Balancers, endpoint services, and endpoint connection requests in AWS.
  • The endpoint service must be created in the same AWS Region as the VeloDB Cloud warehouse.
  • Security groups, network ACLs, and data-source allowlists must allow traffic from the NLB to the data source on the required port, such as 3306 for MySQL or 5432 for PostgreSQL.

Information to prepare​

Who prepares itInformationWhere it is used
Warehouse administratorRegion of the selected warehouse and the ARN of VeloDB Cloud shown under Supporting InformationGive both to the data-source administrator so they can publish the service in the correct Region and authorize the VeloDB Cloud AWS account.
Data-source administratorSource VPC ID, subnets, target address and port, NLB listener port, and applicable routing and security rulesUse these in the data-source AWS account to configure the NLB and reach the target.
Data-source administratorFull AWS endpoint service nameGive this to the warehouse administrator. The AWS setup form in VeloDB Cloud requires Endpoint Service Name and Description.

VeloDB Cloud selects the endpoint VPC, subnet, and security group on the warehouse side. The customer manages the network path from the NLB to the source. This setup requires no VPC peering or exchange of warehouse subnet routes between accounts.

1. Start the connection setup in VeloDB Cloud​

  1. Log in to the VeloDB Cloud console, then choose one of the following entry points:

    • Warehouse connection page: In the upper-left corner, select the warehouse that you want to use, click Connect in the left navigation pane, select Private Endpoint > Grant VeloDB Access to Your VPC, and then click Set up Connection.
    • Import workflow: When configuring an import task that needs to access a private data source in your VPC, add a PrivateLink connection from the connection setup step.

Copy the ARN of VeloDB Cloud from Supporting Information. This Amazon Resource Name (ARN) identifies the AWS account that will create the interface endpoint. Give it to the administrator who manages the endpoint service in the data-source account for Step 5.

2. Create or select a target group​

The target group represents the private service that VeloDB Cloud needs to access.

For example, if you want VeloDB Cloud to import data from an Amazon RDS or Amazon Aurora MySQL/PostgreSQL database, create a target group that points to the private IP address of the database endpoint and uses the database port.

If you already have a suitable target group, you can reuse it. Otherwise, create one in AWS:

  1. Open the AWS console and go to EC2 > Target Groups.
  2. Click Create target group.
  3. Select a target type. For Amazon RDS or Amazon Aurora, select IP addresses because the database is reached through private IP addresses behind the database endpoint.
  4. Set the protocol and port used by the data source. For example, use TCP 3306 for MySQL or TCP 5432 for PostgreSQL.
  5. Select the VPC where the data source runs.
  6. Register the private IP address of the RDS or Aurora endpoint as the target.

To get the private IP address of an RDS or Aurora endpoint, resolve the database endpoint DNS name from an environment that can access the VPC private DNS, such as an EC2 instance in the same VPC:

dig +short <your-rds-endpoint>

Use the returned private IP address as the target. If the command returns multiple IP addresses, register all of them.

Note:

Amazon RDS and Amazon Aurora endpoints are DNS names, and the private IP addresses behind them can change after failover, maintenance, or scaling. For production use, do not rely on a one-time IP registration. Use the Lambda-based automation described in Handle Dynamic IP Changes in Amazon RDS and Aurora to keep the target group up to date. For other services, choose the target type and targets based on how the service is deployed.

3. Create or select a Network Load Balancer​

The endpoint service must be associated with a Network Load Balancer (NLB) that can route traffic to healthy targets in the target group.

If you already have a suitable NLB, you can reuse it. Otherwise, create one in AWS:

  1. Go to EC2 > Load Balancers.
  2. Click Create load balancer and select Network Load Balancer.
  3. Choose Internal as the scheme.
  4. Select the same VPC as the target group.
  5. Select subnets that can route to the private data source and are in the same VPC as the target group.
  6. Add a listener for the data-source port and forward it to the target group.
  7. Create the load balancer, then check the target group and confirm that its registered targets become healthy.

4. Create the AWS endpoint service​

  1. In the AWS console, open VPC > Endpoint services.

  2. Switch to the same AWS Region as the VeloDB Cloud warehouse.

  3. Click Create endpoint service.

  4. Configure the endpoint service.

    ParameterDescription
    Load balancer typeSelect Network.
    Available load balancersSelect the NLB that forwards traffic to your data source.
    Acceptance requiredKeep this enabled if you want to manually approve the endpoint connection request from VeloDB Cloud.
    TagsOptional. Add tags according to your organization's AWS resource-management policy.
  5. Click Create.

5. Allow VeloDB Cloud to connect​

After the endpoint service is created, add VeloDB Cloud as an allowed principal.

  1. Open the endpoint service details page.
  2. Go to the Allow principals tab.
  3. Click Allow principals.
  4. Paste the ARN of VeloDB Cloud shown in the VeloDB Cloud console.
  5. Save the allowlist.

6. Register the endpoint service in VeloDB Cloud​

  1. In the data-source account, open the AWS endpoint service details and copy the full Service Name, including the Region and the vpce-svc- identifier.
  2. Return to the VeloDB Cloud Set up Connection dialog.
  3. Under Endpoint Service Information, paste the value into Endpoint Service Name.
  4. Enter a Description.
  5. Click Grant.

7. Accept the endpoint connection request​

If Acceptance required is off, AWS accepts requests from allowed principals automatically. If it is on, the request stays pending until the data-source administrator approves it:

  1. In AWS, open the endpoint service.
  2. Go to the Endpoint connections tab.
  3. Match the request's endpoint ID to the Endpoint ID shown for this connection in VeloDB Cloud.
  4. Click Accept endpoint connection request.

8. Verify the connection status​

  1. In VeloDB Cloud, refresh Connect > Private Endpoint > Grant VeloDB Access to Your VPC. If the status is Pending Approval, the data-source account must accept the request. When the endpoint is ready, VeloDB Cloud shows Connected and its Endpoint DNS Name.
  2. Test access from the warehouse using the intended integration. For example, in a MySQL or PostgreSQL import wizard, enable Reverse Private Endpoint and select the connected endpoint. The wizard fills in the source host. Enter the NLB listener port and source database credentials, then run the source connection check.

Troubleshooting​

SymptomWhat to check
VeloDB Cloud cannot find the endpoint serviceVerify the full service name, warehouse Region, and VeloDB Cloud ARN under Allow principals. The service must offer an Availability Zone in which VeloDB Cloud can create the endpoint.
The status remains Pending ApprovalIn the data-source account, match the endpoint ID and accept the request under Endpoint connections. Refresh the status in VeloDB Cloud.
The status is Connected, but the source connection check failsCheck the selected endpoint, NLB listener port, and target health. Verify routing, security groups, and network ACLs from the NLB to the source. For authentication or TLS errors, check the source credentials and certificate hostname.

See also​

Enter to send · Shift+Enter for a new line