This data source allows to get file content from 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