cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Have you ever wondered how to automate your #databricks jobs and workflows without using the UI? If you want to manage your Databricks resources as co...

Hubert-Dudek
Esteemed Contributor III

Have you ever wondered how to automate your #databricks jobs and workflows without using the UI? If you want to manage your Databricks resources as code, you should check out Terraform.

Here is a simple example of creating a job that runs a notebook on a new cluster using Terraform.

resource "databricks_job" "example" {
 
  name = "example-job"
 
  new_cluster {
    num_workers   = 2
    spark_version = "13.0.x-scala2.12"
    node_type_id  = "Standard_DS3_v2"
  }
 
  notebook_task {
    notebook_path = "/Users/example@example.com/MyNotebook"
  }
}
 

2 REPLIES 2

-werners-
Esteemed Contributor III

or use ADF 🙂 Still waiting for actual added value on using Databricks Workflow over ADF.

Hubert-Dudek
Esteemed Contributor III

at least logical if/no is coming 🙂

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now