subcategory |
---|
Storage |
-> Note If you have a fully automated setup with workspaces created by databricks_mws_workspaces or azurerm_databricks_workspace, please make sure to add depends_on attribute in order to prevent authentication is not configured for provider errors.
This data source allows to get file content from Databricks File System (DBFS).
data "databricks_dbfs_file" "report" {
path = "dbfs:/reports/some.csv"
limit_file_size = 10240
}
path
- (Required) Path on DBFS for the file to get content oflimit_file_size
- (Required) Do lot load content for files smaller than this in bytes
This data source exports the following attributes:
content
- base64-encoded file contentsfile_size
- size of the file in bytes
The following resources are used in the same context:
- End to end workspace management guide
- databricks_dbfs_file_paths data to get list of file names from get file content from Databricks File System (DBFS).
- databricks_dbfs_file to manage relatively small files on Databricks File System (DBFS).
- databricks_mount to mount your cloud storage on
dbfs:/mnt/name
.