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

[ISSUE] Issue with Unity Catalog resources that are on Workspace API #3018

Open
zshao9 opened this issue Dec 11, 2023 · 8 comments
Open

[ISSUE] Issue with Unity Catalog resources that are on Workspace API #3018

zshao9 opened this issue Dec 11, 2023 · 8 comments
Labels
needs-api changes to Databricks Platform APIs are required

Comments

@zshao9
Copy link

zshao9 commented Dec 11, 2023

I have a list of Unity Catalogs (one for each region) whose catalog/schemas/grants need to be created with Terraform.

Since those resources need to go to the Workspace-API providers, I need a list of providers one for each workspace (associated with the Unity Catalog).

However, Terraform doesn't support a dynamic list of providers (for for_each). See:

Can we consider to use "metastore_id" properly on the catalog/schema/grants resources?
Then I just need to use a single provider with whatever workspace for all the different metastores.

@alexott alexott added the needs-api changes to Databricks Platform APIs are required label Dec 11, 2023
@alexott
Copy link
Contributor

alexott commented Dec 11, 2023

No, it's not possible because such functionality isn't available in the UC APIs.

@mgyucht
Copy link
Contributor

mgyucht commented Dec 18, 2023

Just to expand on this a bit: workspace-level UC APIs only allow interacting with the metastore assigned to that workspace. Even if the TF provider were to accept a metastore ID, it wouldn't be able to interact with that metastore without a running workspace that is assigned to said metastore. We're working with the UC team to align on exposing these APIs at the account-level, in which case you would be able to interact with them purely when configured at the account level.

@bobdoah
Copy link

bobdoah commented Jan 19, 2024

This would be incredibly useful

@sreedhanyagn
Copy link

We have more than 100 workspaces our organization and defining provider for each workspace is not feasible. Is there any alternative solution for this ?
Can we use a single workspace as provider and create Catalogs for other workspaces using this provider ?

@zshao9
Copy link
Author

zshao9 commented Jan 27, 2024 via email

@sreedhanyagn
Copy link

Hey @zshao9 , thanks for your reply.
We are supporting many teams and each has team has multiple workspaces in different environments.

@zshao9
Copy link
Author

zshao9 commented Jan 27, 2024 via email

@sreedhanyagn
Copy link

Yes, they all are in the same region.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-api changes to Databricks Platform APIs are required
Projects
None yet
Development

No branches or pull requests

5 participants