Dbt project outside your Airflow dag folder

Is it mandatory to have Dbt project within your Airflow dag folder to use Astronomer DbtTaskGroup?
Is this possible to create connection if Dbt project is in different repository

Hey @KateM

Welcome to Astronomer Forum!

To answer your question 1st question: “Is it mandatory to have Dbt project within your Airflow dag folder to use Astronomer DbtTaskGroup?”:

No it is not mandatory to keep the dbt project in your Airflow DAG folder. You can also use the Astro Project’s include directory for your dbt project and set the DBT_PROJECT_PATH in this example to your dbt project’s directory.

Your second question: “Is this possible to create connection if Dbt project is in different repository”

You can keep your dbt project in a separate repository and then clone it as part of your docker build when building your Astro project. For example, see this doc.

Thanks
Manmeet