terraform-provider-databricks icon indicating copy to clipboard operation
terraform-provider-databricks copied to clipboard

[DOC] databricks_share says NOTEBOOK_FILE is supported but there is lack of support/documentation for it

Open zandriaj opened this issue 1 year ago • 0 comments

Affected Resource(s)

https://registry.terraform.io/providers/databricks/databricks/1.38.0/docs/resources/share#object-configuration-block image

data_object_type (Required) - Type of the data object, currently TABLE, SCHEMA, VOLUME, NOTEBOOK_FILE are supported.

However, when using NOTEBOOK_FILE data object type, it results in Error: cannot update share: The content must be set when adding a NOTEBOOK_FILE. There is no supporting documentation for how to set this "content" or how to properly share a notebook. Any fields outside of the standard table/schema/volume fields return a message saying Unexpected attribute: An attribute named "content" is not expected here image

image

I am using version 1.38.0

Expected Details

An example of how to share a NOTEBOOK_FILE. If notebook file can't be added through terraform, then please remove it from documentation.

References

https://github.com/databricks/terraform-provider-databricks/pull/3108

zandriaj avatar Mar 05 '24 22:03 zandriaj