ScyllaDB University Live | Free Virtual Training Event
Learn more
ScyllaDB Documentation Logo Documentation
  • Server
  • Cloud
  • Tools
    • ScyllaDB Manager
    • ScyllaDB Monitoring Stack
    • ScyllaDB Operator
  • Drivers
    • CQL Drivers
    • DynamoDB Drivers
  • Resources
    • ScyllaDB University
    • Community Forum
    • Tutorials
Download
ScyllaDB Docs ScyllaDB Cloud Cluster Connections Configure AWS Transit Gateway (TGW) VPC Attachment Connection

Configure AWS Transit Gateway (TGW) VPC Attachment Connection¶

Available with the Premium plan

ScyllaDB Cloud allows you to connect your application’s private network to the ScyllaDB clusters by using AWS TGW VPC Attachment Connection. By following this guide, you will establish a network connection from your VPC to a cluster datacenter via TGW.

There are two AWS TGW VPC Attachment Connection options:

  • RAM Shared Option

    RAM Shared option allows you to connect to a TGW from another account. With this option, TGW is shared with Cluster AWS Account via RAM.

    Note

    This is the only option that is available for clusters deployed on ScyllaDB Cloud AWS Account (Non-Bring Your Own Account clusters).

    Note

    RAM can be re-used across connections and clusters within one ScyllaDB Cloud Account.

  • Non-shared Option

    If you have access to a Cluster AWS Account, you can create a TGW on the same region where the cluster is running, and this TGW becomes available to the cluster - no need to share it via RAM.

For more information on AWS TGW VPC Attachment and its advantages, see AWS TGW documentation and AWS TGW VPC Attachment documentation.

Workflow¶

  1. Launch a ScyllaDB Cloud cluster on AWS with the VPC Peering / Transit Gateway option enabled.

  2. Set up AWS TGW VPC Attachment Connection.

  3. Create AWS TGW VPC Attachment Connection on ScyllaDB Cloud.

  4. Route traffic via TGW.

Set Up AWS TGW VPC Attachment Connection¶

Prerequisites¶

  • Find target AWS Region: AWS TGW is a regional service; you have to deploy it on the same region where the cluster is running.

  • AWS TGW can entail additional traffic charges; make sure that you read and understand AWS TGW Pricing.

  • Decide on the option that suits your case: Non-shared option or RAM Shared option.

Setup¶

Step 1. Create TGW¶

  1. Open AWS Cloud Console at VPC> Transit Gateways.

  2. Pick Target Region, which should be the same region where the target cluster is running.

  3. Click Create transit gateway.

  4. Set Name.

    ../_images/create-tgw-1-set-name.png
  5. (Optional) Set Auto accept shared attachments to make your TGW automatically accept attachment requests from other accounts.

    ../_images/create-tgw-2-set-auto-accept.png
  6. Click Create transit gateway and wait until TGW is created.

  7. Go back to VPC> Transit Gateways.

  8. Find TGW you just created.

    ../_images/create-tgw-3-find-tgw.png
  9. Copy the ID of TGW. You will need it to create a connection on ScyllaDB Cloud.

    ../_images/create-tgw-4-copy-tgw-id.png

Step 2. Attach your VPC to the TGW¶

  1. Go to VPC> Transit Gateway attachments.

  2. Click Create transit gateway attachment.

  3. Set Name, Transit gateway ID to ID of TGW you just created, Attachment type to VPC.

    ../_images/attach-your-vpc-to-tgw-1-set-info.png
  4. Set VPC ID to a VPC you want to connect to the cluster.

    ../_images/attach-your-vpc-to-tgw-2-set-vpc.png
  5. Pick subnets for all AZs you want to have access to the cluster.

    ../_images/attach-your-vpc-to-tgw-3-check-subnets.png
  6. Click Create transit gateway attachment.

Step 3. Share TGW with Cluster AWS Account¶

  1. Open AWS Cloud Console at Resource Access Manager> Shared by me: Resource shares.

  2. Click Create resource share.

  3. Set Name.

    ../_images/create-ram-1-set-name.png
  4. Set Resource type to Transit Gateways, find your TGW, and check it in.

    ../_images/create-ram-2-pick-tgw.png
  5. Make sure your TGW is in the list below.

    ../_images/create-ram-3-pick-tgw-2.png
  6. Click Next.

  7. Review permissions at Associate managed permissions.

    ../_images/create-ram-4-associate-managed-permissions.png
  8. Click Next.

  9. Add Cluster AWS Account to a list of principals.

    ../_images/create-ram-5-grant-access-select-account-1.png
  10. Make sure Cluster AWS Account is in the list of selected principals.

    ../_images/create-ram-6-grant-access-select-account-2.png
  11. Click Next.

  12. In the Review and create section, review all information.

  13. Click Create resource share.

  14. Go back to Resource Access Manager> Shared by me: Resource shares.

  15. Find the RAM you just created and click on its name.

    ../_images/create-ram-7-find-ram.png
  16. Copy it’s ARN. You will need it to create a connection on ScyllaDB Cloud.

    ../_images/create-ram-8-get-arn.png

Create AWS TGW VPC Attachment Connection on ScyllaDB Cloud¶

  1. Go to ScyllaDB Cloud> My Clusters.

  2. Find the target cluster.

  3. Click ADD CONNECTION. You can add a connection only after the cluster is fully provisioned.

  4. Click Add Transit Gateway Connection and fill in the following information:

    • Name - Enter the name of the cluster connection.

    • Data Center - Choose the datacenter you want to connect to the TGW.

    • AWS RAM ARN - Enter the ARN of the RAM created as described in the Share TGW with ScyllaDB Cloud AWS Account section or leave it empty if you choose the Non-shared option.

    • AWS Transit Gateway ID - Enter the ID of the TGW created as described in the Create TGW section.

    • AWS VPC CIDRs - Enter a list of networks that you want to expose to the cluster via this connection.

  5. Click Add Transit Gateway and wait for it to become ACTIVE.

Route Traffic from the Application to the Cluster via TGW¶

Caution

If you already have another connection to the cluster that is currently in use, following these steps may cause traffic interruption. To avoid it, see Migrating Cluster Connection.

  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. Click Add route.

  5. Enter Target Cluster Datacenter CIDR to a Destination column, pick Transit gateway for Target, and choose your TGW from the drop-down list right below it.

    ../_images/create-route-traffic-to-tgw-1.png
  6. Check cluster availability; see Checking Cluster Availability.

Troubleshooting Transit Gateway Connection¶

Connection stuck at stage: waiting client to send resource share invitation¶

Reason

You did not send RAM to Cluster AWS Account.

How to fix it

Follow these steps to share TGW with cluster AWS acccount.

Connection stuck at stage: waiting client to share transit gateway¶

Reason

You did not share TGW with Cluster AWS Account. Please check that tgw-id is the same on RAM and on cluster connection.

How to fix it

Following steps make sure that tgw-id is exactly the same on RAM and on cluster connection.

Connection stuck at stage: waiting client to accept tgw attachment¶

Reason

AWS TGW is not configured with Auto accept shared attachments enabled.

How to fix it

You can fix it in one of the following ways:

- I. Fix TGW to auto-accept attachments:

Note

These steps won’t accept any pending attachments. In order to accept pending attachments, please follow Manually accept TGW attachment.

  1. Open AWS Cloud Console at VPC> Transit Gateways.

  2. Pick AWS Region, which should be the same region where the target cluster datacenter is running.

  3. Find your TGW (using TGW ID) and click Actions> Modify transit gateway.

  4. Select Auto accept shared attachments to make your TGW automatically accept attachment requests from other accounts.

    ../_images/create-tgw-2-set-auto-accept.png
  5. Click Modify transit gateway.

- II. Manually accept TGW attachment:

Note

Make sure that the connection is not failed by timeout. If it is, delete it, recreate it, and when it gets to the waiting client to accept tgw attachment stage, proceed with the steps below.

  1. Go to VPC> Transit Gateway attachments.

  2. Find the attachment pending acceptance by TGW Attachment ID.

    ../_images/accept-tgw-attachment-1-find.png
  3. Accept the attachment.

    ../_images/accept-tgw-attachment-2-accept.png

Was this page helpful?

PREVIOUS
Cluster Connections
NEXT
Configure Virtual Private Cloud (VPC) Peering with AWS
  • Create an issue

On this page

  • Configure AWS Transit Gateway (TGW) VPC Attachment Connection
    • Workflow
    • Set Up AWS TGW VPC Attachment Connection
      • Prerequisites
      • Setup
        • Step 1. Create TGW
        • Step 2. Attach your VPC to the TGW
        • Step 3. Share TGW with Cluster AWS Account
    • Create AWS TGW VPC Attachment Connection on ScyllaDB Cloud
    • Route Traffic from the Application to the Cluster via TGW
    • Troubleshooting Transit Gateway Connection
      • Connection stuck at stage: waiting client to send resource share invitation
      • Connection stuck at stage: waiting client to share transit gateway
      • Connection stuck at stage: waiting client to accept tgw attachment
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
    • Costs
  • Deployment
    • Cloud Providers
    • Cluster Types
    • Bring Your Own Account (BYOA) - AWS
    • Bring Your Own Account (BYOA) - GCP
    • Terraform Provider
  • 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
    • Scaling a Cluster
    • 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
    • Data Privacy and Compliance
  • Free Trial
  • Tutorials
  • API Documentation
    • Create a Personal Token for Authentication
    • Terraform Provider for ScyllaDB Cloud
    • API Reference
    • Error Codes
  • Getting Help
    • ScyllaDB Cloud FAQ
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 20 Jun 2025.
Powered by Sphinx 7.4.7 & ScyllaDB Theme 1.8.6
Ask AI