cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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 🙂

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.