Skip to content

dbtcloud_job.timeout_seconds returns misleading warnings #475

@bogdan-cioata

Description

@bogdan-cioata

Describe the bug

Terraform returns warnings for dbtcloud_job.timeout_seconds, but the resource doesn't support the suggested configuration.

Documentation isn't clear either:

(Number, Deprecated) [Deprectated - Moved to execution.timeout_seconds]

Warning message

╷
│ Warning: Attribute Deprecated
│
│   with module.jobs.dbtcloud_job.other["REDACTED|REDACTED"],
│   on ..\modules\dbt-cloud-jobs\main.tf line 196, in resource "dbtcloud_job" "other":196:   timeout_seconds          = each.value.config.timeout_seconds
│
│ Moved to execution.timeout_seconds
│
│ (and one more similar warning elsewhere)

Resource configuration

resource "dbtcloud_job" "other" {
  for_each = local.other_jobs
 
  triggers = {
    "github_webhook"       = false
    "git_provider_webhook" = false
    "schedule"             = false
    "on_merge"             = false
  }
 
  project_id           = each.value.project_id
  environment_id       = each.value.environment_id
  name                 = each.value.config.name
  job_type             = each.value.config.job_type
  description          = each.value.config.description
  
  ... 

  # Advanced settings
  target_name          = each.value.config.target_name
  **timeout_seconds      = each.value.config.timeout_seconds**
  num_threads          = each.value.config.num_threads
  run_generate_sources = each.value.config.run_generate_sources
  generate_docs        = each.value.config.generate_docs

  ...

}

Expected behavior

The execution block should be available for configuration.

Config

  • dbt Cloud provider version 1.1.0

Additional context

N/A

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions