Problem setting environment variables #1547
Unanswered
FredericoCoelhoNunes
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I have an issue when setting environment variables.
My repository contains two projects, each containing it's own profile:
I am fetching the credentials for each of these profiles from Secretsmanager before each dbt command, depending on the
--project-dir
argument that is passed to the invoke method, by implementing a custom dbtRunner (as suggested in the documentation).I am able to run models through the extension; however I don't have access to any lineage information.
I suspect this is because the environment variables are not accessible at the time of project parsing - when I run the project healthcheck, I get several
Env var required but not provided
errors (even though I am still able to run the models by pressing the ⏯️ button).Example:
Is there any method of dbtRunner that I could be overwriting to be able to configure each of my project's profiles at parse time?
Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions