Skip to content

Reference for using Astronomer Cosmos, dbt Deploys, and multiple dbt projects on Astro

Notifications You must be signed in to change notification settings

astronomer/dbt-on-astro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dbt on Astro - Reference Implementation

This repository answers the following question: How do I set up, run, and maintain dbt workflows for any-size teams on Astro and Airflow?

dbt on Astro graphic

Repository Walkthrough

This repository provides a comprehensive guide on setting up, running, and maintaining dbt workflows on Astro and Airflow. It includes detailed instructions and examples to help users understand the integration between dbt, Astro, and Airflow.

Technology

  1. Astro. Take Apache Airflow® to the next level by hosting it with Astro.
  2. Cosmos. The best way to orchestrate dbt with Airflow.
  3. dbt Deploys on Astro. Deploy dbt code directly to Astro, without changing your environment.
  4. Astronomer's Github Action Extension. Set up CI/CD to your Astro deployment in just a few lines of code.

Repository Contents

  • astro_cosmos_project/: This directory contains a full Astro project that defines the environment, metadata, and DAGs of your Astro deployment. For this project, we're using Astronomer Cosmos, the best way to orchestrate dbt with Airflow.

    • dags/: Three DAGs for rendering Astronomer Cosmos
    • dags/dbt: This directory shows an example of keeping your dbt code and DAG code coupled together. This is the best strategy for small teams with only one repo.
  • dbt/: This directory contains dbt projects that live outside of your Astro project directory.. This directory can live in the same repository as your Astro project OR can live in a different repository entirely.

  • .github/workflows/deploy-to-astro.yaml: This GitHub Actions workflow file automates the deployment of your Astro project to the Astronomer platform. It also independently deploys dbt projects from dbt/ when code changes.

About

Reference for using Astronomer Cosmos, dbt Deploys, and multiple dbt projects on Astro

Resources

Stars

Watchers

Forks