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 🙂

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group