Aleksei Perepelov
11/09/2024, 3:58 PMtap-ga4
extractor, but I'm having trouble with configuring the client secrets: Meltano Tap-GA4 Extractor.
My questions are:
1. Is it possible to use service account credentials instead of OAuth credentials?
2. If so, which configuration setting enables this?
I attempted to pass a service account JSON (exported from GCP) as the value for the client_secrets
setting in the tap-ga4
configuration, but I received "Failed to set value" errors for each parameter.
I would appreciate any help, or better - an example of the config file for a working extractor using GCP service account credentials.Andy Carter
11/11/2024, 8:21 AM- name: tap-ga4
variant: meltanolabs
pip_url:
git+<https://github.com/MeltanoLabs/tap-google-analytics.git@da49600d08caf614ec8336367a3b3d8f92b26100>
config:
start_date: 2023-03-20
property_id: ${TAP_GA4_PROPERTY_ID}
client_secrets: ${TAP_GOOGLE_ANALYTICS_CLIENT_SECRETS}
key_file_location: ''
reports: ga4_reports.json
THen in my .env I have
TAP_GOOGLE_ANALYTICS_CLIENT_SECRETS='{"type": "service_account","proje....
I found I needed to escape the new lines in the json private key, so \n
becomes \\n
"private_key": "-----BEGIN PRIVATE KEY-----\\nMIIEvQIBADANBg
Andy Carter
11/11/2024, 8:53 AMAleksei Perepelov
11/12/2024, 3:36 PMdocker run -v $(pwd):/meltano/adapty -w /meltano/adapty meltano/meltano config tap-bigquery test
I get
[Errno 2] No such file or directory: '/meltano/adapty/.meltano/run/tap-bigquery/tap.0b018efa-2af0-47ee-a590-c66710f6ef89.config.json'
Where the "0b018efa-2af0-47ee-a590-c66710f6ef89" is always unique. I couldn't find any sort of context on this. Is there a chance this is happening because I didn't set values in --interactive mode but just by modifying the meltano.yml file?Edgar Ramírez (Arch.dev)
11/12/2024, 3:41 PM.dockerignore
with a line for .meltano/
. If that works, it's probably worth documenting it.Aleksei Perepelov
11/12/2024, 5:06 PMaaron_phethean
02/06/2025, 9:36 PMReuben (Matatika)
02/06/2025, 9:49 PM