Errors While Configuring GCP Source Plugin
Hey there! I’m trying to configure the GCP plugin to read data from my GCP organization. I’m using CloudQuery from an EC2 instance on AWS. This is my configuration so far:
spec:
# Source spec section
name: "rcp-gcp"
path: "cloudquery/gcp"
registry: "cloudquery"
version: "v11.5.0"
tables: ["gcp_storage_buckets"]
destinations: ["postgresql"]
spec:
# GCP Spec
organization_ids: ["XXXXXX"]
target_principal: "XXXXXXXX.iam.gserviceaccount.com"
scopes: "https://www.googleapis.com/auth/devstorage.read_only"
---
kind: destination
spec:
name: "postgresql"
path: "cloudquery/postgresql"
registry: "cloudquery"
version: "v7.0.1"
spec:
connection_string: ${PG_CONNECTION_STRING_GCP}
pgx_log_level: error
I’ve created a service account and granted my user permissions to impersonate it. Then I’ve installed gcloud on my EC2 instance and logged in using my user, but I get this error:
Error: failed to sync v3 source rcp-gcp: rpc error: code = Internal desc = failed to init plugin: failed to initialize client: failed to create organizations client: google: could not find default credentials. See https://cloud.google.com/docs/authentication/external/set-up-adc for more information
Any idea of what may be wrong?