terraform-provider-databricks
terraform-provider-databricks copied to clipboard
Exporter: Add match by the longest prefix
trafficstars
Right now, exporter generates paths like this:
resource "databricks_notebook" "some_notebok" {
source = "${path.module}/notebooks/dir1/dir2/notebook.py"
path = "${databricks_user.user.home}/dir1/dir2/notebook"
}
Even if we emit a dedicated object for the databricks_directory resource that matches the given directory. It could be solved by adding a new matching method to select a directory with the longest path to a given notebook.