terraform-provider-databricks
terraform-provider-databricks copied to clipboard
Added `databricks_job` data resource
Retrieves the settings of databricks_job by name or by id. Complements the feature of the databricks_jobs data source.
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 "cluster_id" {
value = data.databricks_job.job_settings.existing_cluster_id
sensitive = false
}
Attribute Reference
This data source exports the following attributes:
-
job_id
- the id of databricks_job if the resource was matched by name. -
job_name
- the job name of databricks_job if the resource was matched by id. -
job_settings
- the job settings of databricks_job.
Related Resources
The following resources are used in the same context:
- databricks_jobs data to get all jobs and their names from a workspace.
- databricks_job to manage Databricks Jobs to run non-interactive code in a databricks_cluster.
Codecov Report
Merging #1509 (b59c138) into master (10dd11a) will increase coverage by
0.46%
. The diff coverage is86.36%
.
Additional details and impacted files
@@ Coverage Diff @@
## master #1509 +/- ##
==========================================
+ Coverage 89.57% 90.04% +0.46%
==========================================
Files 135 136 +1
Lines 10825 10847 +22
==========================================
+ Hits 9697 9767 +70
+ Misses 737 690 -47
+ Partials 391 390 -1
Impacted Files | Coverage Δ | |
---|---|---|
jobs/data_job.go | 85.71% <85.71%> (ø) |
|
provider/provider.go | 95.30% <100.00%> (+0.03%) |
:arrow_up: |
exporter/util.go | 82.32% <0.00%> (+3.86%) |
:arrow_up: |
exporter/importables.go | 90.68% <0.00%> (+5.25%) |
:arrow_up: |