Skip to main content
Skip table of contents

Synchronize DB Resources in Google Cloud

Overview

QueryPie supports integration with Google Cloud Platform (GCP) for database registration and management. By synchronizing resources from GCP, you can register them as managed databases in QueryPie, assign access permissions to users and groups, and configure policies for these synchronized databases.

Registering GCP Integration in QueryPie

image-20240725-044632.png

Administrator > Databases > Connection Management > Cloud Providers > Create Provider

  1. Navigate to the Administrator > Databases > Connection Management > Cloud Providers menu.

  2. Click the Create Provider button in the upper right corner.

  3. Name: Enter a name to distinguish the provider.

  4. Cloud Provider: Select Google Cloud Platform.

  5. Project ID: Enter the Project ID for the resources to be synchronized.

  6. Credential: Enter the necessary credential information.

    • Currently, only synchronization via GCP's Service Account is supported.

  7. Database Type Filter: Select the resources to be synchronized.

  8. Replication Frequency: Choose the synchronization method:

    • Manual: Synchronize only when triggered manually.

    • Scheduling: Synchronize on a regular schedule using Cron Expressions.

  9. Click Save to register the Cloud Provider.

Synchronizing and Managing GCP Cloud Providers

image-20240725-051609.png

Administrator > Databases > Connection Management > Cloud Providers > Details

  1. Navigate to the Administrator > Databases > Connection Management > Cloud Providers menu.

  2. Click on the registered Cloud Provider to open the details screen.

  3. Click the Sychronize button in the upper right corner to sync resources from GCP.

  4. You can monitor synchronization progress in the Synchronization Log or view the history under Administrator > General > Systems > Jobs.

  5. Once a Cloud Provider is registered, certain provider details cannot be modified:

    1. Name: Changeable

    2. Cloud Provider: Not changeable

    3. Project ID: Not changeable

    4. Credential: Not changeable

    5. Database Type Filter: Changeable

    6. Replication Frequency: Changeable

Synchronizing via Service Account

image-20240725-051807.png

Administrator > Databases > Connection Management > Cloud Providers > Details > Synchronize

  1. After registering the Cloud Provider for GCP, click the Synchronize button in the details page.

  2. Enter the Service Account JSON key in the provided field and click Ok.

    1. You can create a Service Account and obtain the JSON key from the Google Cloud Console under IAM & Admin > Service Accounts.

  3. The resources will be synchronized once using the JSON key, and the synchronized resources will be available in the DB Connections menu.

Required Permissions for GCP Service Accounts

  • CloudSQL : CloudSQL Viewer

  • BigQuery : BigQuery Administrator

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.