Skip to content

EliiseS/databricks-terraform

 
 

Repository files navigation

Databricks Terraform Provider

Build Status

Documentation | Contributing and Development Guidelines

To quickly install the binary please execute the following curl command in your shell or install provider from source.

curl https://raw.githubusercontent.com/databrickslabs/databricks-terraform/master/godownloader-databricks-provider.sh | bash -s -- -b $HOME/.terraform.d/plugins

Then create a small sample file, named main.tf with approximately following contents. Replace <your PAT token> with newly created PAT Token. It will create a simple cluster.

provider "databricks" {
  host = "https://abc-defg-024.cloud.databricks.com/"
  token = "<your PAT token>"
}

resource "databricks_cluster" "shared_autoscaling" {
  cluster_name            = "Shared Autoscaling"
  spark_version           = "6.6.x-scala2.11"
  node_type_id            = "i3.xlarge"
  autotermination_minutes = 20

  autoscale {
    min_workers = 1
    max_workers = 50
  }
}

Then run terraform init then terraform apply to apply the hcl code to your Databricks workspace. Please refer to the end-user documentation for detailed use of the provider. Also refer to these examples for more scenarios.

Project Support

Please note that all projects in the /databrickslabs github account are provided for your exploration only, and are not formally supported by Databricks with Service Level Agreements (SLAs). They are provided AS-IS and we do not make any guarantees of any kind. Please do not submit a support ticket relating to any issues arising from the use of these projects.

Any issues discovered through the use of this project should be filed as GitHub Issues on the Repo. They will be reviewed as time permits, but there are no formal SLAs for support.

Packages

No packages published

Languages

  • Go 81.1%
  • CSS 7.7%
  • HTML 4.9%
  • JavaScript 3.2%
  • Shell 1.5%
  • HCL 0.7%
  • Other 0.9%