cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to install whl from volume for databricks_cluster_policy via terraform.

RaviG
New Contributor II

I would expect 

resource "databricks_cluster_policy" "cluster_policy" {
  name = var.policy_name
  libraries {
    Volumes {
        whl = "/Volumes/bronze/config/python.wheel-1.0.3-9-py3-none-any.whl"
      }
}
}

to work but terraform doesnt recognize "volumes". on the documentation im only finding PyPI and Maven. Is there another syntax for volumes? 
Cannot find any mentions in https://registry.terraform.io/providers/databricks/databricks/latest/docs/resources/cluster_policy 

The code for databricks_library that works is below, but i would like to install this using a databricks policy.

resource "databricks_library" "shared_python_wheel" {
  cluster_id = var.cluster_id
  whl        = "/Volumes/bronze/config/python.wheel-1.0.3-9-py3-none-any.whl"
}

Might be relevant: https://github.com/databricks/terraform-provider-databricks/issues/3612

1 ACCEPTED SOLUTION

Accepted Solutions

PurpleViolin
New Contributor
This worked

resource
 "databricks_cluster_policy" "cluster_policy" {
  name = var.policy_name
  libraries {
        whl = "/Volumes/bronze/config/python.wheel-1.0.3-9-py3-none-any.whl"
      }
}

View solution in original post

1 REPLY 1

PurpleViolin
New Contributor
This worked

resource
 "databricks_cluster_policy" "cluster_policy" {
  name = var.policy_name
  libraries {
        whl = "/Volumes/bronze/config/python.wheel-1.0.3-9-py3-none-any.whl"
      }
}

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