Advanced dbt Tutorial

An advanced example DAG from the Astronomer tutorial featuring the execution of dbt commands in Airflow.

Data Processing


Providers:

Modules:

Run this DAG

Download the repository:

Install Astronomer CLI:Skip if you already have our CLI

Start the DAG:

Airflow DAGs for dbt

The code in this repository is meant to accompany this blog post on beginner and advanced implementation concepts at the intersection of dbt and Airflow.

To run these DAGs locally:

  1. Download the Astro CLI
  2. Download and run Docker
  3. Clone this repository and cd into it.
  4. Run astro dev start to spin up a local Airflow environment and run the accompanying DAGs on your machine.

We are currently using a sample manifest.json file pulled from the dbt docs, but if you would like to try these dags with your own dbt workflow, feel free to copy and paste your manifest.json file into the dags/dbt/target/ directory.