@jpdoliveira
The volume patj is designed for non‑tabular, file‑level access; its FUSE path (/Volumes/...) is not a valid table LOCATION scheme in Unity Catalog, so attempting to create an external table with a /Volumes/... path will fail with “invalid scheme” style errors. You can use the cloud path behind your volume’s external location, not the /Volumes path. Unity Catalog external tables must point to a cloud URI covered by an External location.
One more suggestion would to be to use the newer databricks_sql_table instead of the databricks_table.
resource "databricks_sql_table" "gold_external" {
name = "gold_layer"
catalog_name = databricks_catalog.example_catalog.name
schema_name = databricks_schema.example_schema.name
table_type = "EXTERNAL"
# IMPORTANT: use the cloud URI, not the /Volumes path
# For example: s3://my-bucket/path/gold_layer/
storage_location = "${var.example_s3_path}gold_layer/"
data_source_format = "DELTA" # or "PARQUET", "CSV", etc., to match the files
}
Just please ensure your external location grants CREATE EXTERNAL TABLE (and typically READ FILES) to the principal used by Terraform, and that workspace bindings allow access from your workspace.