We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There is a new DBT Cloud feature where sqlfluff linting that can be added to CI jobs (https://docs.getdbt.com/docs/deploy/continuous-integration#sql-linting)
They have updated the create_job API with two new boolean fields to manage this:
create_job
"run_lint": true, "errors_on_lint_failure": true,
It would be great if the dbtcloud_job resource was able to mange these fields.
dbtcloud_job
Maybe we can add the fields to the resource like:
run_lint: true, errors_on_lint_failure: true,
i.e.
resource "dbtcloud_job" "sample CI Job" { environment_id = dbtcloud_environment.ci_environment.environment_id execute_steps = [ "dbt build --warn-error -s state:modified+ --fail-fast" ] generate_docs = false name = "CI JOB" num_threads = 32 project_id = dbtcloud_project.data_engineering_project.id run_generate_sources = false run_lint = true, errors_on_lint_failure = true, target_name = "prod" ... }
The text was updated successfully, but these errors were encountered:
Just noticed this is still in beta and not yet widely available, so may be premature for inclusion.
Sorry, something went wrong.
I can do some testing. If I can add it to TF without breaking it for users who don't have access to the Beta, I might still be able to do it.
Notes for the implementation.
We should be adding 2 fields to the dbtcloud_jobs resource:
dbtcloud_jobs
run_lint
errors_on_lint_failure
And both should be defaulting to false
false
No branches or pull requests
Is your feature request related to a problem? Please describe.
There is a new DBT Cloud feature where sqlfluff linting that can be added to CI jobs (https://docs.getdbt.com/docs/deploy/continuous-integration#sql-linting)
They have updated the
create_job
API with two new boolean fields to manage this:It would be great if the
dbtcloud_job
resource was able to mange these fields.Describe the solution you'd like
Maybe we can add the fields to the resource like:
i.e.
The text was updated successfully, but these errors were encountered: