With the new pythonic resource configuration, the ...
# integration-dbt
q
With the new pythonic resource configuration, the example here doesn't seem to work for connecting to DBT cloud. Using
EnvVar
returns a string but the
account_id
field expects an integer.
s
You’re right the code example is wrong. Should be:
Copy code
from dagster_dbt import DbtCloudClientResource
from dagster import EnvVar

dbt_cloud_instance = DbtCloudClientResource(
    auth_token=EnvVar("DBT_CLOUD_API_TOKEN"),
    account_id=<http://EnvVar.int|EnvVar.int>("DBT_CLOUD_ACCOUNT_ID"),
)
Will put up a fix, thanks
q
Thank you @schrockn!