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] Experimental exporter generates permissions for /shared in the workspace #2269

Closed
rohitnijhawan opened this issue May 8, 2023 · 0 comments · Fixed by #2288
Closed
Assignees
Labels
exporter TF configuration generator

Comments

@rohitnijhawan
Copy link
Contributor

The Experimental exporter generates permissions for the /shared directory in the databricks workspace.

As a result, the terraform apply operation tries to apply permissions - such an operation is not supported.

The following resource definition

resource "databricks_permissions" "directory_shared_430507847510155" {
  directory_id = data.databricks_directory.shared_430507847510155.object_id
  access_control {
    permission_level = "CAN_MANAGE"
    group_name       = data.databricks_group.users_54623195191167.display_name
  }
}

leads to this error

Error: cannot create permissions: Cannot modify permissions of directory 357400256613881

with databricks_permissions.directory_shared_430507847510155,
on access.tf line 68, in resource "databricks_permissions" "directory_shared_430507847510155":
68: resource "databricks_permissions" "directory_shared_430507847510155" {

@rohitnijhawan rohitnijhawan added the exporter TF configuration generator label May 8, 2023
alexott added a commit that referenced this issue May 10, 2023
Current Permissions API doesn't allow change of the permissions for the `/Shared` folder,
so when we generate a permission resource for it, we get Terraform error.

fixes #2269
alexott added a commit that referenced this issue May 15, 2023
Current Permissions API doesn't allow change of the permissions for the `/Shared` folder,
so when we generate a permission resource for it, we get Terraform error.

fixes #2269
@nfx nfx closed this as completed in #2288 May 16, 2023
nfx pushed a commit that referenced this issue May 16, 2023
…#2288)

Current Permissions API doesn't allow change of the permissions for the `/Shared` folder,
so when we generate a permission resource for it, we get Terraform error.

fixes #2269
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exporter TF configuration generator
Projects
None yet
3 participants