By creating a virtual private cloud (VPC), you can connect your GCP 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 GCP, see VPC Network Peering overview.
VPC peering is available on only Classic C- and D-tier Astra DB databases.
- Create a VPC in your GCP account.
- Create your Astra DB database.
See Creating your Astra DB database.
The procedure is a two-step process using the Astra DB Console and the Google Cloud Console.
Astra DB
- From your database Overview, select Add Peering Connection.
- In Add Peering Connection, enter the GCP project name in the Project ID.
- Enter the VPC Network Name from the list of VPCs in the VPC dashboard of your GCP account.For example, default.
- Select Initiate.
Google Cloud Console
- Open your GCP project.
- In the left sidebar, navigate to VPC Network.
- Open VPC network peering.
- Select Create Connection and then Continue.
- On the Create peering connection dialog, enter:
- Select Initiate Peering.