Andy Carter
10/09/2023, 8:49 AMAZURE_STORAGE_CONNECTION_STRING
env variable, but this conn string will be different for each account.
Following the docs here (https://docs.meltano.com/guide/configuration/#specifying-environment-variables) I tried:
.env
BUCKET_A_CONN_STRING=abc123
and then
- name: tap-myfeeda
inherit_from: tap-spreadsheets-anywhere
env:
AZURE_STORAGE_CONNECTION_STRING: ${BUCKET_A_CONN_STRING}
but just received errors suggesting no connection (it definitely works previously). It's not clear from the docs if I can reference ANOTHER env variable in the env:
section.
Other issues: I'm not invoking via cli so I can't inject any extra variables at runtime. Needs to be achievable with a static set of container-level env variables and meltano.ymlAndy Carter
10/09/2023, 9:48 AMenv:
on the base things seem to work betterAndy Carter
10/09/2023, 10:00 AMMY_CONN=abc
Then this works:
environments:
- name: dev
env:
MY_CONN: $MY_CONN
plugins:
extractors:
- name: my-tap
env:
AZURE_STORAGE_CONNECTION_STRING: $MY_CONN
But if I leave out the definition in environments:
then AZURE_STORAGE_CONNECTION_STRING
just appears as an empty string when I try to invoke. Is this a bug?Andy Carter
10/09/2023, 11:13 AMvisch
10/09/2023, 11:13 AMAndy Carter
10/09/2023, 11:15 AMAndy Carter
10/09/2023, 11:15 AMplugins:
extractors:
- name: my-tap-1
env:
AZURE_STORAGE_CONNECTION_STRING: $MY_CONN_1
- name: my-tap-2
env:
AZURE_STORAGE_CONNECTION_STRING: $MY_CONN_2
Henning Holgersen
10/09/2023, 12:35 PMvisch
10/09/2023, 12:36 PMvisch
10/09/2023, 12:38 PMAndy Carter
10/09/2023, 12:40 PMAndy Carter
10/09/2023, 12:40 PMenvironment:
level first, then at plugin level, otherwise I just get empty strings. I'm fine with thatvisch
10/09/2023, 12:41 PMprakhar_srivastava
10/09/2023, 11:32 PMI did get it working, but I would need all the vars defined at thelevel first, then at plugin level, otherwise I just get empty strings. I'm fine with thatenvironment:
visch
10/10/2023, 12:10 PM