ScyllaDB University Live | Free Virtual Training Event
Learn more
ScyllaDB Documentation Logo Documentation
  • Deployments
    • Cloud
    • Server
  • Tools
    • ScyllaDB Manager
    • ScyllaDB Monitoring Stack
    • ScyllaDB Operator
  • Drivers
    • CQL Drivers
    • DynamoDB Drivers
    • Supported Driver Versions
  • Resources
    • ScyllaDB University
    • Community Forum
    • Tutorials
Install
Ask AI
ScyllaDB Docs ScyllaDB Cloud Cluster Connections Migrating Cluster Connection

Migrating Cluster Connection¶

ScyllaDB Cloud allows you to connect to a cluster in different ways:

  • AWS Transit Gateway (TGW) VPC Attachment Connection

  • AWS Virtual Private Network (VPC) Peering

  • GCP Virtual Private Network (VPC) Peering

You can migrate from one connection to another, in some cases, without network interruption.

This guide provides general steps to migrate from one connection to another and a particular example of how to migrate from AWS Virtual Private Network (VPC) Peering to AWS Transit Gateway (TGW) VPC Attachment Connection.

Cluster Connection Statuses¶

There are many connection statuses, but in regard of migration, the following statuses are relevant:

  • ACTIVE - Connection is deployed on the cloud and actively used in making routing decisions. Traffic is going to be routed through it unless there are common CIDRs with other ACTIVE connections.

  • INACTIVE - Connection is deployed on the cloud but it is not participating in routing decisions. Traffic is never routed through it.

Cluster Connection Routing¶

Cluster connections are prioritized by creation date, with older connections having priority. This priority plays out only when two connections have common CIDRs; for each common CIDR, the oldest ACTIVE cluster connection is picked as the routing endpoint while other connections are ignored.

Prerequisites¶

Before proceeding with migration, make sure that you have a personal access token for your ScyllaDB Cloud account. See Create a Personal Token for Authentication for instructions on how to obtain it.

General Connection Migration Guide (General Steps)¶

Migrate to a New Cluster Connection¶

  1. Create NEW cluster connection. It is assumed that at least some of CIDRs exist on both OLD and NEW connections.

  2. At this point, traffic from both ends goes via OLD cluster connection.

  3. Direct traffic from your network to the cluster via NEW cluster connection. It is done in your AWS Account and VPC.

  4. At this point, traffic from your network goes via NEW cluster connection, while traffic from the cluster to your network goes through OLD cluster connection.

  5. Set OLD cluster connection to INACTIVE.

  6. ScyllaDB Cloud will direct cluster traffic through NEW cluster connection.

  7. Now traffic from both ends goes through NEW cluster connection.

Migrate Back to the Old Cluster Connection¶

  1. Direct traffic from your network to the cluster via OLD cluster connection. It is done in your AWS Account and VPC.

  2. At this point, traffic from your network goes via OLD cluster connection, while traffic from the cluster to your network goes through OLD cluster connection.

  3. Set OLD cluster connection to ACTIVE; optionally you can set NEW cluster connection to INACTIVE.

  4. ScyllaDB Cloud will direct cluster traffic via OLD cluster connection. Now traffic from both ends goes through OLD cluster connection.

Example: Migration from AWS VPC Peering to AWS TGW VPC Attachment¶

The following example shows you how to migrate from AWS VPC Peering to AWS TGW VPC Attachment (and back) via ScyllaDB Cloud API using your account ID. You can get the account ID using the https://api.cloud.scylladb.com/account/default endpoint; see Gives account details tied to authorized user.

  1. Create AWS TGW VPC Attachment cluster connection, following the steps from Setup AWS TGW VPC Attachment Connection.

    By Routing traffic from your application to the cluster via TGW, you are going to direct traffic from your network to the cluster via the new cluster connection.

  2. Set AWS VPC Peering cluster connection to INACTIVE.

    curl --request PATCH \
    --url https://api.cloud.scylladb.com/account/<ACCOUNT-ID>/cluster/<CLUSTER-ID>/network/vpc/peer/<VPC-PEERING-PEERING-CONNECTION-ID> \
    --header "Authorization: Bearer <TOKEN>" \
    --header "Content-Type: application/json" \
    -d '{"status": "INACTIVE"}'
    

Migration Back from AWS TGW VPC Attachment to AWS VPC Peering¶

  1. Set AWS VPC Peering cluster connection to ACTIVE.

    curl --request PATCH \
    --url https://api.cloud.scylladb.com/account/<ACCOUNT-ID>/cluster/<CLUSTER-ID>/network/vpc/peer/<VPC-PEERING-PEERING-CONNECTION-ID> \
    --header "Authorization: Bearer <TOKEN>" \
    --header "Content-Type: application/json" \
    -d '{"status": "ACTIVE"}'
    
  2. Set AWS TGW VPC Attachment to INACTIVE.

    curl --request PATCH \
    --url https://api.cloud.scylladb.com/account/<ACCOUNT-ID>/cluster/<CLUSTER-ID>/network/vpc/connection/<TGW-VPC-ATTACHMENT-CONNECTION-ID> \
    --header "Authorization: Bearer <TOKEN>" \
    --header "Content-Type: application/json" \
    -d '{"status": "INACTIVE"}'
    

    It will direct traffic from the cluster via AWS VPC Peering, while traffic from the cluster to your network through AWS TGW VPC Attachment cluster connection.

  3. Direct traffic from your network to the cluster via AWS VPC Peering:

    1. Open AWS Cloud Console at VPC> Route tables.

    2. Find and select the main route table for your VPC (the one that has Yes in the Main column).

    3. Click Actions> Edit routes.

    4. Find the route to Cluster Datacenter CIDR. In the Destination column, select Peering Connection for Target and select your VPC peering ID from the drop-down list below it.

      ../_images/create-route-traffic-to-vpc-peering-1.png
    5. Click Save changes.

Was this page helpful?

PREVIOUS
Configure Virtual Private Cloud (VPC) Peering with GCP
NEXT
Checking Cluster Availability
  • Create an issue

On this page

  • Migrating Cluster Connection
    • Cluster Connection Statuses
    • Cluster Connection Routing
    • Prerequisites
    • General Connection Migration Guide (General Steps)
      • Migrate to a New Cluster Connection
      • Migrate Back to the Old Cluster Connection
    • Example: Migration from AWS VPC Peering to AWS TGW VPC Attachment
      • Migration Back from AWS TGW VPC Attachment to AWS VPC Peering
ScyllaDB Cloud
  • New to ScyllaDB? Start here!
  • Quick Start Guide to ScyllaDB Cloud
  • About ScyllaDB Cloud as a Service
    • Benefits
    • Backups
    • Best Practices
    • Managing ScyllaDB Versions
    • Support, Alerts, and SLA Commitments
    • Billing
  • Deployment
    • Cluster Types - X Cloud and Standard
    • Bring Your Own Account (BYOA) - AWS
    • Bring Your Own Account (BYOA) - GCP
    • Terraform Provider
    • Free Trial
  • Cluster Connections
    • Configure AWS Transit Gateway (TGW) VPC Attachment Connection
    • Configure Virtual Private Cloud (VPC) Peering with AWS
    • Configure Virtual Private Cloud (VPC) Peering with GCP
    • Migrating Cluster Connection
    • Checking Cluster Availability
    • Glossary for Cluster Connections
  • Access Management
    • SAML Single Sign-On (SSO)
    • User Management
  • Managing Clusters
    • Resizing a Cluster
    • Adding a Datacenter
    • Deleting a Cluster
    • Maintenance Windows
    • Email Notifications
    • Usage
  • Using ScyllaDB
    • Apache Cassandra Query Language (CQL)
    • ScyllaDB Drivers
    • Tracing
    • Role Based Access Control (RBAC)
    • ScyllaDB Integrations
  • Monitoring
    • Monitoring Clusters
    • Extracting Cluster Metrics in Prometheus Format
  • Security
    • Security Best Practices
    • Security Concepts
    • Database-level Encryption
    • Storage-level Encryption
    • Service Users
    • Data Privacy and Compliance
  • Vector Search
    • Quick Start Guide to Vector Search
    • Vector Search Clusters
    • Working with Vector Search
    • Glossary
    • Reference
    • Example Project
  • API Documentation
    • Create a Personal Token for Authentication
    • Terraform Provider for ScyllaDB Cloud
    • API Reference
    • Error Codes
  • Help & Learning
    • Tutorials
    • FAQ
    • Getting Help
Docs Tutorials University Contact Us About Us
© 2025, ScyllaDB. All rights reserved. | Terms of Service | Privacy Policy | ScyllaDB, and ScyllaDB Cloud, are registered trademarks of ScyllaDB, Inc.
Last updated on 24 Nov 2025.
Powered by Sphinx 7.4.7 & ScyllaDB Theme 1.8.9
Ask AI