Skip to content

Defining vars, folder-level configs outside dbt_project.yml #2955

@jtcohen6

Description

@jtcohen6

Describe the feature

From @benjaminsingleton:

I’d like to use project level variables more, but I’m concerned about bloat to my already large dbt-project.yml file. I think it would be helpful if I could create a variables.yml file that could be imported in dbt-project.yml . And for that matter, the same could be done for other configurations in the dbt_project.yml file. I think having the ability to separate configurations into different files might make for improved modularity / separation of concerns (particularly for large projects), not to mention fewer merge conflicts. CC @jrandrews

Describe alternatives you've considered

  • We're already thinking of enabling some configs in resource-YAML files (Set configs in schema.yml files #2401), but these would be at the level of the individual resource (model/seed/snapshot/etc) only
  • The dbt_project.yml gets really really big??

Additional context

  • I don't think this has any correspondence to v1.0. It's a nice thing to have, and we can could do it before, after, any time without it being a breaking change in any way.

Who will this benefit?

  • Developers and maintainers of increasingly big dbt projects

Metadata

Metadata

Assignees

No one assigned

    Labels

    RefinementMaintainer input neededenhancementNew feature or requestpaper_cutA small change that impacts lots of users in their day-to-dayvarsyaml

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions