Authentication | databricks_aws_s3_mount | databricks_azure_adls_gen1_mount | databricks_azure_adls_gen2_mount | databricks_azure_blob_mount | databricks_cluster | databricks_cluster_policy | databricks_dbfs_file | databricks_group | databricks_group_instance_profile | databricks_group_member | databricks_instance_pool | databricks_instance_profile | databricks_job | databricks_mws_credentials | databricks_mws_networks | databricks_mws_storage_configurations | databricks_mws_workspaces | databricks_notebook | databricks_permissions | databricks_scim_user | databricks_secret | databricks_secret_acl | databricks_secret_scope | databricks_token | Contributing and Development Guidelines
To quickly install the binary please execute the following curl command in your shell or install provider from source.
If you use Terraform 0.12, please execute the following curl command in your shell:
curl https://raw.githubusercontent.com/databrickslabs/databricks-terraform/master/godownloader-databricks-provider.sh | bash -s -- -b $HOME/.terraform.d/plugins
If you use Terraform 0.13, please refer to instructions specified at registry page:
terraform {
required_providers {
databricks = {
source = "databrickslabs/databricks"
version = ... # replace dots with latest version
}
}
}
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 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.