terraform-provider-databricks icon indicating copy to clipboard operation
terraform-provider-databricks copied to clipboard

Exporter: Add match by the longest prefix

Open alexott opened this issue 2 years ago • 0 comments
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.

alexott avatar Aug 15 '23 11:08 alexott