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] Create a databricks_mws_permission_assignments resource that can resolve configuration drift #3696

Open
Hekter opened this issue Jun 24, 2024 · 0 comments
Labels
feature New feature or request

Comments

@Hekter
Copy link
Contributor

Hekter commented Jun 24, 2024

Use-cases

databricks_mws_permission_assignment objects do not detect workspace-wide configuration drift such as additional groups being added to the workspace that are not defined in IAC which would be very useful to have in the style of databricks_grants.

Proposal

Create a mws_permission_assignments resource that takes a workspace id, and n amount of principal blocks.

resource "mws_permission_assignments" "self" {
  workspace_id = "workspace_id"
  assignment {
    principal_id = "principal_1_id"
    permissions  = ["ADMIN"]
  }
  assignment {
    principal_id = "principal_2_id"
    permissions  = ["USER"]
  }
}

Both principal_id and permissions are required fields. It should be possible to have 0 assignment blocks in order to clear all permissions.

@Hekter Hekter added the feature New feature or request label Jun 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