Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Configure External Delta Sharing for auto-generated metastores #4350

Open
cjf-fuller opened this issue Dec 24, 2024 · 0 comments
Open
Labels
feature New feature or request

Comments

@cjf-fuller
Copy link

cjf-fuller commented Dec 24, 2024

Use-cases

We now use the auto-generated unity-catalog metastores but are unable to grant delta_sharing_scope on the auto-generated metastore which prevents us from creating external databricks_recipient resources through terrraform - we get the following error:

 Error: cannot create recipient: 
│ External Delta Sharing is not enabled on the metastore.
│ Please contact the account admin to enable External Delta Sharing."
│ 
│ 
│   with module.unity_common[0].module.ktl_data_services_share.databricks_recipient.recipient[0],
│   on ../../data_modules/datalake/unity/delta_share/delta_share.tf line 38, in resource "databricks_recipient" "recipient":
│   38: resource "databricks_recipient" "recipient" {
│ 

We can enable External Delta Sharing via the Databricks console but this is an additional manual step in our deployment which we're trying to automate as far as possible.

Attempted Solutions

Importing metastore as a databricks_metastore resource to alter the setting but terraform 1.5.x doesn't support dynamic import blocks and the metastore ID must be passed in as a string literal.

Proposal

Could External Delta Sharing be made configurable via terraform so we can apply it to auto-generated metastores that are not managed in IaC

@cjf-fuller cjf-fuller added the feature New feature or request label Dec 24, 2024
@cjf-fuller cjf-fuller changed the title [FEATURE] New feature request [FEATURE] Configure External Delta Sharing for auto-generated metastores Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant