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 = "true"
}
path
- (Required) Path on DBFS for the file from which to get content.limit_file_size
- (Required - boolean) Do not load content for files larger than 4MB.This data source exports the following attributes:
content
- base64-encoded file contentsfile_size
- size of the file in bytesThe following resources are used in the same context:
dbfs:/mnt/name
.