tomasfarias / airflow-dbt-python

A collection of Airflow operators, hooks, and utilities to elevate dbt to a first-class citizen of Airflow.
https://airflow-dbt-python.readthedocs.io
MIT License
170 stars 35 forks source link

Dbt cannot be run when using a MWAA Connection #132

Open laurodelacerda opened 7 months ago

laurodelacerda commented 7 months ago

I cannot run my dbt project using a Snowflake Connection.

It is okay with the connection, I tested it using astronomer-cosmos

When I run the using this code as an example it returns that I need to run dbt deps.

So I created a step to run a DbtDepsOperator, and it is all good. But the DbtRunOperator still returns errors.

That is the code. image

Errors when run DbtDepsOperator

dbt.exceptions.UninstalledPackagesFoundError: Compilation Error
  dbt found 3 package(s) specified in packages.yml, but only 0 package(s) installed in dbt_packages. Run "dbt deps" to install package dependencies.
dbt.exceptions.DbtRuntimeError: Runtime Error
  fatal: Invalid --project-dir flag. Not a dbt project. Missing dbt_project.yml file

Any help will be much appreciated. 🙏🏼