fal_dbt_examples
fal_dbt_examples copied to clipboard
Examples showing real-life use cases for fal + dbt
Fal example dbt project
This is an example dbt project that uses fal
To get started, install the dependency requirements:
pip install -r requirements.txt
Copy profiles.yml
to .dbt
directory:
mkdir $HOME/.dbt
cp profiles.yml $HOME/.dbt/
Setup up the necessary environment variables:
export KEYFILE_DIR=$HOME
export GCLOUD_PROJECT='your_gcloud_project_id'
export BQ_DATASET='your_bigquery_dataset_id'
export SLACK_BOT_TOKEN='your_slack_bot_token'
export SLACK_BOT_CHANNEL='your_slack_bot_channel'
export DD_API_KEY="your_datadog_api_key"
export DD_APP_KEY="your_datadog_app_key"
You can now try to run dbt and fal:
dbt seed
dbt run
fal run
See example details:
- schema.yml for model configurations
- script examples
- profiles.yml for example profile
- requirements.txt
- fal_workflow.yml for example Github Action workflow