Dark Mode

By creating a virtual private cloud (VPC), you can connect your AWS resources and DataStax Astra DB databases. VPC peering allows you to communicate across the VPCs.

For more about VPC peering on Astra DB databases hosted on AWS, see https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html[What is VPC peering?].

VPC peering is available on only Classic C- and D-tier Astra DB databases.

Prerequisites

Adding the peering connection

  • From your database *Overview*, select *Add Peering Connection*.
  • In *Add Peering Connection*, enter your *Account ID from My Account* within your AWS Console without any dashes.
  • Enter the *VPC ID you want to use from your list of VPCs in your AWS VPC dashboard*.
  • Enter the *VPC CIDR* (classless inter-domain routing) block for your AWS VPC.If desired, whitelist the CIDR block by selecting the option.
  • Select the receiving *Application VPC Region*.
  • Select *Initiate*.
  • Accept the peering connection:
  • Get the REQUESTERVPC_CIDRBLOCK :
  • Add the route in route table with sender's CIDR and peering connection ID:

See Updating your Route tables for a VPC peering connection.. Once you've created a VPC peering connection, download the secure connect bundle for internal VPC network to connect to your database.