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

PurpleViolin
Databricks Partner
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