This resource allows you to manage directories in Databricks Workpace.
You can declare a Terraform-managed directory by specifying the path
attribute of the corresponding directory.
resource "databricks_directory" "my_custom_directory" {
path = "/my_custom_directory"
}
The following arguments are supported:
path
- (Required) The absolute path of the directory, beginning with "/", e.g. "/Demo".delete_recursive
- Whether or not to trigger a recursive delete of this directory and its resources when deleting this on Terraform. Defaults to false
In addition to all arguments above, the following attributes are exported:
id
- Path of directory on workspaceobject_id
- Unique identifier for a DIRECTORYworkspace_path
- path on Workspace File System (WSFS) in form of /Workspace
+ path
The resource directory can be imported using directory path:
terraform import databricks_directory.this /path/to/directory
The following resources are often used in the same context:
spark_version
parameter in databricks_cluster and other resources.