dbt-labs / dbt-learn-advanced-deployment

A repository for building and filming the advanced deployment course on courses.getdbt.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What environments do we need in order to to teach each of our sections?

SamHarting opened this issue · comments

Can we confirm that we need the following environments so that I can reference the correct ones when creating my sections:

  1. dev
  2. prod
  3. ci

Comment with any other environments you might need or if you are unsatisfied with these names.

I have seen a few Slack conversations about requiring a CI one or not (or just using the PROD one for CI). Because we use custom schemas, even if we use prod, it will use a different schema.

Personally I agree with Pat on this one. The benefit of having an environment named CI is that you can create conditional logic for CI runs, namely limiting the amount of data. I'll reverse the question:

Is there any known benefit to running it against prod?

You can actually limit the amount of data in the CI job even when using Prod because target.name is set at the Job level and not at the Environment level.

The advantage I see of using the same environment is mainly that in quite a few occasions people don't remember what is the password for Prod or don't want to create another DW user.

Okay. As long as there is no clear advantage to a separate environment that would make it best practice I am fine with sticking to prod and dev