Transformations: Variable interpolation in deployment.yml
We currently define our jobs in 1 repo for both production and nonproduction. We would like to define within that file jobs that filter based on the environment it is set as. We need to dynamically interpolate variables in the deployment.yml file.
We want to keep our nonprod and prod repos in sync rather than create two where they could become out of date.
Ideally if we could enter the defined environment variables as selectors and excluders in the deployment.yml file where we define the dbt command to run?
For example:
dbt run --select tag:{{ ENV }}_only
Which gets run as:
dbt run --select tag:prod_only
Please sign in to leave a comment.
Comments
0 comments