databricks_job Data Source

January 28, 2026 ยท View on GitHub

Retrieves the settings of databricks_job by name or by id. Complements the feature of the databricks_jobs data source.

-> This data source can only be used with a workspace-level provider!

Example Usage

Getting the existing cluster id of specific databricks_job by name or by id:

data "databricks_job" "this" {
  job_name = "My job"
}

output "job_num_workers" {
  value     = data.databricks_job.this.job_settings[0].settings[0].new_cluster[0].num_workers
  sensitive = false
}

Argument Reference

  • provider_config - (Optional) Configure the provider for management through account provider. This block consists of the following fields:
    • workspace_id - (Required) Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.

Attribute Reference

This data source exports the following attributes:

The following resources are used in the same context: