Hi y'all, when working with multiple dbt projects ...
# integration-dbt
s
Hi y'all, when working with multiple dbt projects within a single definition, what is the proper way to set up DbtCliResource and refrence it within @dbt_assets?
Copy code
resources={
        "dbt_A": DbtCliResource(project_dir=os.fspath(dbt_project_dir_A)),
        "dbt_B": DbtCliResource(project_dir=os.fspath(dbt_project_dir_B)),
    },
r
We’re using Pythonic resources here, so you just reference the correct resource using the resource key:
Copy code
@dbt_assets(...)
def my_project_a(context: OpExecutionContext, dbt_A: DbtCliResource):
    dbt_A.cli(...)

@dbt_assets(...)
def my_project_b(context: OpExecutionContext, dbt_B: DbtCliResource):
    dbt_B.cli(...)
thank you box 1