GCP VPC peering

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

For more about VPC peering on Astra databases hosted on GCP, see VPC Network Peering overview.

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

Prerequisites

  • Create a VPC in your GCP account.

  • Create your Astra database.

Procedure

The procedure is a two-step process using the DataStax Astra Console and the Google Cloud Console.

Astra Console

  1. From your database Overview, select Add Peering Connection.

  2. In Add Peering Connection, enter the GCP project name in the Project ID.

  3. Enter the VPC Network Name from the list of VPCs in the VPC dashboard of your GCP account. For example, default.

  4. Select Initiate.

Google Cloud Console

  1. Open your GCP project.

  2. In the left sidebar, navigate to VPC Network.

  3. Open VPC network peering.

  4. Select Create Connection and then Continue.

  5. On the Create peering connection dialog, enter:

    • A name for the connection you’re creating

    • Your VPN network You may select default from the list.

    • Under Peered VPC Network, enable In another project and enter:

    • Astra Project ID: Found on your database page in Network Peering. For example, esmrahul3x7as3xbcj2grtexarskq.

    • VPC network name: Found on your database page in Network Peering. For example, dse-4240ebe6-72e1-4ea1-ac25-cc728d9fa9ff.

  6. Select Initiate Peering.