Pierre Cadman
02/28/2024, 2:19 PMScout
02/28/2024, 2:19 PMdagster-dbt
configuration, you can use the vars
parameter in the dbt_cli_resource
configuration. This allows you to specify key-value pairs that dbt
will receive as variables. Here's an example of how you might configure the dbt_cli_resource
with variables: yaml resources: dbt: config: project_dir: "/path/to/dbt/project" profiles_dir: "/path/to/dbt/profiles" vars: key1: "value1" key2: "value2"
In this configuration, key1
and key2
are the variables that will be passed to dbt
when it runs. You can include this configuration in your Dagster job definition by specifying the dbt_cli_resource
in the resource_defs
argument. Please note that the exact syntax and structure may vary depending on the version of Dagster and dagster-dbt
you are using, so it's important to refer to the specific documentation for your version to ensure correct usage.