Skip to contentManaged Kafka is live: Apache Kafka on AWS for half the cost of MSK

Connection options

Connect through AWS PrivateLink

Create an AWS PrivateLink connection in the Artie dashboard so Artie reaches your database without exposing it to the internet.

Artie creates a VPC endpoint in its data plane. The endpoint connects to an endpoint service in your VPC, which forwards traffic through a Network Load Balancer (NLB) to your database.

Customer VPCArtie data planePrivateLinkVPC endpointEndpoint serviceNLBDatabase

For an Azure data plane, see Azure Private Link.

Prerequisites

  • A plan that includes PrivateLink. If Settings > PrivateLink shows Talk to sales, your plan doesn’t include it.
  • A PostgreSQL, MySQL, SQL Server, Oracle, CockroachDB, DocumentDB or Redshift connector. Other connectors, including MongoDB and Redis, don’t offer PrivateLink.
  • A VPC endpoint service in front of an NLB that routes to your database
  • The endpoint service’s name and availability zone (AZ) IDs
  • Cross-region access turned on, if the endpoint service is in a different region from your data plane
  • Artie’s principal (arn:aws:iam::788826912768:root) added to the endpoint service’s allowed principals

For bring your own cloud (BYOC), the Artie principal may be different. Contact Artie for yours.

The form shows the price when a new connection adds to your invoice: $500 per month for each connection, prorated. On a self-serve free trial, connections are free until you convert to a paid plan, and the trial includes 2 connections.

  1. Open PrivateLink settings

    In the Artie dashboard, go to Settings, then PrivateLink.

  2. Start a new connection

    Select New connection. The New PrivateLink connection form opens.

  3. Enter the connection details

    Fill in the connection fields. A note at the top of the form says what follows: immediate setup, a review by Artie, or approval by a workspace admin.

  4. Submit the request

    Select Create. The connection shows Awaiting approval until it’s approved, then Provisioning while Artie creates the endpoint.

  5. Accept the endpoint connection

    Wait for the status Pending acceptance. In your AWS console, go to VPC > Endpoint Services > Endpoint Connections and accept Artie’s request.

  6. Confirm the connection is available

    Artie checks for acceptance every 15 minutes. To check sooner, select Check acceptance status beside the status. The status changes to Available.

Artie emails your workspace when the request is ready to accept. Workspace admins see requests that await approval under Pending approvals in PrivateLink settings.

Connection fields

The form has up to five fields.

FieldWhat to enter
NameA name for the connection. It stays editable.
EnvironmentThe environment of the pipelines that use the connection. It can’t change after you create the connection.
Data planeThe data plane that reaches your network. This field appears only when your workspace has a choice of data planes.
VPC service nameThe endpoint service name, in the form com.amazonaws.vpce.<region>.vpce-svc-<id>. Artie reads the region from it.
Availability zonesOne or more AZ IDs, such as use1-az1, that your endpoint service shares with the list.

Data plane, VPC service name and Availability zones stay editable until Artie provisions the endpoint.

Use the connection in a pipeline

To use the connection in a new pipeline, pick it during pipeline setup:

  1. On the Network access step, select PrivateLink.
  2. Under Existing link, choose the connection in PrivateLink connection.
  3. Select Continue.

Artie fills the database host with the connection’s address, shown in the Address column of PrivateLink settings. The list holds connections in the pipeline’s environment that are Available, or Pending acceptance with an address.

To create a connection from this step, select New link, fill in the form, then select Create PrivateLink. If the environment has no connection yet, the step opens on that form.

For an existing pipeline, open the pipeline page, set the connection method to PrivateLink, then choose a PrivateLink connection.

A connector uses either PrivateLink or an SSH tunnel. Artie blocks deleting a connection while a connector or source reader uses it.

Verify the connection

The connection is ready when its status is Available. To test the network path, run the debugging tool:

  1. In PrivateLink settings, select Debug connectivity on the connection’s row.
  2. Wait for Step 1: DNS lookup (dig) to list the resolved IP addresses.
  3. Under Step 2: TCP connectivity check, enter your database’s Port and select Test TCP.

Each IP address shows Success or Failed.

PrivateLink debugging tool

Artie also checks every Available connection once a day. Two checks at least 12 hours apart must find the endpoint rejected, expired, failed or deleted. The status then changes to Errored and Artie emails your workspace.

After a rejection, Artie keeps its endpoint for 7 days. Accept the request again in AWS within that time, or select Retry provisioning to create a new endpoint.

Connection statuses

The Status column in PrivateLink settings shows one of six values.

StatusMeaningWhat to do
Awaiting approvalArtie or a workspace admin hasn’t approved the connection.Wait, or ask a workspace admin to approve it.
ProvisioningArtie is creating its VPC endpoint.Wait.
Pending acceptanceArtie’s endpoint exists and its request waits in your AWS account.Accept the request in AWS.
AvailableYou accepted the request.Use the connection in a pipeline.
ErroredProvisioning failed, or the endpoint stopped working.Read the reason in Artie’s email, fix it, then select Retry provisioning.
DeclinedA workspace admin declined the request. It doesn’t count toward your connection limit.Create a new connection.

Load balancer setups

Connect multiple databases

Choose one of two setups:

  1. (Recommended) Create one PrivateLink connection and maintain target group mapping to each database within your load balancer.
  2. Create a separate PrivateLink connection for each database, each with its own endpoint service.

Separate connections are only necessary for dedicated resources and traffic isolation at very high throughput. That is typically more than 500 MB/s of sustained data transfer or more than 100,000 concurrent connections.

Backfill from a read replica

Artie backfills from a read replica when Use a read replica for backfill? is on. With PrivateLink, create a new target group entry for the replica, as in Connect multiple databases.

To reach the replica through its own connection, choose it in Replica PrivateLink connection (optional). Artie fills the replica host with that connection’s address.

Route to RDS or Aurora instances

Aurora and RDS have dynamic IPs, and an NLB target group needs a static IP. Two common ways to get one:

  1. (Recommended) Use a Lambda function that periodically runs dig or nslookup on the database and updates the NLB target group with the IP.
  2. Create an EC2 instance with a static IP and do port forwarding.

Troubleshooting

Status shows Errored

When provisioning fails, Artie emails your workspace the reason. It starts with one of these messages. The error icon beside the status shows the technical error behind it.

MessageFix
No availability zones are selected for this PrivateLink connection.Edit the connection, choose at least one availability zone, then select Retry provisioning.
One or more of the availability zones selected for this connection isn't available in Artie's network.Edit the connection, choose zones from the Availability zones list, then select Retry provisioning.
The VPC endpoint service name or region for this connection appears to be invalid.Check VPC service name, update the connection, then select Retry provisioning.
Something went wrong while provisioning your PrivateLink connection.Artie’s team is notified. Select Retry provisioning once the issue is resolved.

Connection times out

Run the debugging tool in Verify the connection first. If it doesn’t surface the issue, work through the next two checks in order.

Verify availability zone IDs overlap

PrivateLink requires at least one matching availability zone between Artie’s VPC endpoint and your endpoint service. With no overlap, traffic has no path and the connection times out silently.

To check the overlap:

  1. In the Amazon VPC console, choose Endpoint services, select your endpoint service and write down the zones on its Details tab.
  2. Find each zone’s AZ ID in the Zone ID column of the AWS Global View console, or run aws ec2 describe-availability-zones.
  3. In PrivateLink settings, select Edit connection and read the Availability zones field.
  4. Confirm that at least one AZ ID appears in both lists.

Enable cross-zone load balancing on your NLB

If your database targets are registered in a different AZ than the one receiving PrivateLink traffic, the NLB drops the connection by default.

To fix this:

  1. In the Amazon EC2 console, choose Load Balancers and select your NLB.
  2. On the Attributes tab, select Edit.
  3. Turn on Cross-zone load balancing, then select Save changes.

Was this page helpful?