Skip to content

[Feature] Support setting database and schema with environment variables #33

Open
@bretwalker

Description

@bretwalker

Is there an existing feature request for this?

  • I have searched the existing issues

Describe the Feature

Currently, source configurations for database and schema names can only be set through project variables, which are not very dynamic.

I would like to use the same dbt_project.yml across environments that have different source databases, but project vars are not Jinja rendered, like most other configuration sections. The only mechanism for overriding projects vars is with the --vars command line option. While this would work, I'd like to avoid it because it complicates calling dbt for developers and in our deployments. In addition, using env vars is already a pattern that's supported in setting the database value in sources, and so I'd like to be able to do the same with dbt_zendesk_source.

There's a lot of discussion about how to make vars more configurable on the dbt-core Githib, but nothing has been decided yet.

Describe alternatives you've considered

No response

Are you interested in contributing this feature?

  • Yes.
  • Yes, but I will need assistance and will schedule time during your office hours for guidance.
  • No.

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions