Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.85 KB

File metadata and controls

37 lines (26 loc) · 1.85 KB
subcategory
Storage

databricks_dbfs_file Data Source

-> 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).

Example Usage

data "databricks_dbfs_file" "report" {
  path            = "dbfs:/reports/some.csv"
  limit_file_size = 10240
}

Argument Reference

  • path - (Required) Path on DBFS for the file to get content of
  • limit_file_size - (Required) Do lot load content for files smaller than this in bytes

Attribute Reference

This data source exports the following attributes:

  • content - base64-encoded file contents
  • file_size - size of the file in bytes

Related Resources

The following resources are used in the same context: