Ethan Fuerst
08/10/2023, 9:30 PMdagster-dbt project scaffold --project-name local_dagster
from the setup guide and getting a FileNotFoundError
because my profiles.yml
is not in the same directory as my dbt_project.yml
. as dbt recommends, I have it in a directory in my top level directory. is there a way I can specify a profiles.yml
location on initialization of a new dagster project?rex
08/10/2023, 10:12 PMprofiles.yml
.
The reason that we expect the profiles.yml
to be in the dbt project directory is because you need a durable reference to the profiles.yml
when you use Dagster + dbt on an external platform (e.g. K8s, ECS, Docker compose, Dagster Cloud). Otherwise, dbt will be unable to connect to the data warehouse, since it will not have access to your personal machine’s ~/.dbt
, but only your Dagster code and your dbt project.
The reason why dbt recommends ~/.dbt/
is because they take care of profiles.yml
for you in dbt Cloud. But when deploying dbt Core
in an open source capacity, you will need to manage profiles.yml
yourself.rex
08/10/2023, 10:13 PMEthan Fuerst
08/10/2023, 10:21 PM~/.dbt/
because I work on multiple dbt projects in different directories that connect to different databasesEthan Fuerst
08/10/2023, 10:28 PMrex
08/10/2023, 10:33 PMrex
08/10/2023, 10:33 PMEthan Fuerst
08/10/2023, 10:38 PM