Connecting to an AWS PrivateLink enabled Apache Cassandra Cluster on the Instaclustr Platform

This page describes the steps that need to be taken to connect Cassandra clients in one VPC to an AWS PrivateLink enabled Cassandra cluster on the Instaclustr platform.

Customers need firstly to setup the AWS VPC Endpoint Service and the right security groups in the AWS Console. Then secondly configure the Cassandra AWS PrivateLink cluster on the Instaclustr Console to connect to the VPC Endpoint with Private IPv4 DNS names instead of IPv4 address.

Once these two steps are done customers can then configure the Cassandra client to access the Cassandra AWS PrivateLink cluster.

Prerequisite

You will need to have a running AWS PrivateLink enabled cluster on the Instaclustr Platform. Please refer to our support page on Creating an AWS PrivateLink enabled Cassandra cluster on the Instaclustr Platform for guidance. 

Setup the AWS VPC Endpoints 

  1. In Instaclustr Console, navigate to the Connection Info page in the menu under your cluster’s name (as highlighted in the below screenshot)
  2. Copy the AWS VPC Endpoint Service Name from this page.
  3. Next go to your AWS account in the AWS Console
  4. Select the relevant region
  5. Go to VPC→ Endpoint → Create endpoint
  6. Input a name for the endpoint
  7. Select Other endpoint services
  8. Paste the Endpoint Service Name(that you copied over from the Instaclustr Console) in Service settingsService name and hit Verify service.Note: At this point if the Endpoint Service cannot be verified, please make sure you have provided the correct IAM Principal ARN while provisioning the cluster. You can update this setting from the Instaclustr Console → Your cluster → AWS PrivateLink page.
  9. In VPC -> VPC, select the VPC that you would like to connect from the drop-down list.
  10. From Subnets, using the checkboxes, select all Availability Zones and pick the corresponding Subnet IDs from the drop-down menu. Then select the IPv4 option in the IP address type list.
  11. In Security groups, select from the appropriate options so your client application has permission to AWS PrivateLink Endpoint.
  12. Add tags (as appropriate)
  13. Click Create Endpoint

Setup AWS PrivateLink VPC Endpoint DNS names

Once the new AWS PrivateLink Endpoint Service has been created, gather the Endpoint DNS names from the AWS console as the Cassandra AWS PrivateLink cluster on the Instaclustr Console will need to connect to the VPC Endpoint with Private IPv4 DNS names instead of IPv4 address.

  1. Find and select the Endpoint from VPC-> Endpoints
  2. From the Details panel, go to Subnets
  3. For each Subnet, click the corresponding Network Interface ID
  4. Copy the Private IPv4 DNSfor the selected network interface.
  5. Once you have gathered all the Private IPv4 DNS names, navigate back to the Instaclustr console.
  6. From the Instaclustr Console, navigate to the AWS PrivateLinkpage located in the menu under your clusters name, as highlighted below.
  7. Go to the Update AWS Endpoint DNS Names section and enter the Private IPv4 DNS names that you collected and hit Update DNS NameNOTE: Updating the AWS PrivateLink DNS name on the Instaclustr Platform requires an update to the Shotover configuration file and a restart of Shotover to update the application configuration. Cassandra nodes are unaffected by this and will remain in a RUNNING state. However, the restart of Shotover will prevent the client accessing Cassandra nodes and cause downtime for the cluster until Shotover hits a RUNNING state

     

  8. Click Update DNS Names to apply the changes.

Connect your client to access the AWS PrivateLink enabled Cassandra cluster

Lastly you will need to download the Cluster CA certificate to configure your client so that a secure connection to the AWS PrivateLink can be established.

  1. Go to the Connection Info page to download the Cluster CA certificate. Use this Cluster CA certificate to access the Cassandra AWS PrivateLink cluster.
  2. Alternatively, customers can use the Connection examples that are provided in python, java, cql to create the connect Cassandra clients in one VPC to the AWS PrivateLink enabled Cassandra cluster on the Instaclustr platform.

Your AWS PrivateLink enabled Cassandra cluster should now be in full operation with the AWS VPC Endpoint and client now configured. For more information on AWS PrivateLink, please refer to our support documentation or contact Instaclustr Support for further assistance.

 

By Instaclustr Support
Need Support?
Experiencing difficulties on the website or console?
Already have an account?
Need help with your cluster?
Contact Support
Why sign up?
To experience the ease of creating and managing clusters via the Instaclustr Console
Spin up a cluster in minutes