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 databricks_permissions resource on databricks_sql_endpoint #2165

Closed
mkazia-db opened this issue Mar 27, 2023 · 0 comments · Fixed by #2168
Closed

[ISSUE] Issue with databricks_permissions resource on databricks_sql_endpoint #2165

mkazia-db opened this issue Mar 27, 2023 · 0 comments · Fixed by #2168

Comments

@mkazia-db
Copy link

Setting databricks_permissions on sql_endpoint_id removes the CAN_MANAGE permissions from the creator of the SQL warehouse(endpoint)

Configuration

resource "databricks_sql_endpoint" "this" {
  name             = "test"
  cluster_size     = "Small"
  max_num_clusters = 1

}

resource "databricks_permissions" "endpoint_usage" {
  sql_endpoint_id = databricks_sql_endpoint.this.id

  access_control {
    group_name       = "Automation"
    permission_level = "CAN_MANAGE"
  }

  access_control {
    group_name       = "Engineering"
    permission_level = "CAN_USE"
  }
}

Expected Behavior

Expecting the groups Automation to have CAN_MANAGE, Engineering to have CAN_USE, Admins to have CAN_MANAGE and the creator to have CAN_MANAGE

Actual Behavior

Automation has CAN_MANAGE, Engineering has CAN_USE, Admins has CAN_MANAGE but the creator has no permissions.

Steps to Reproduce

terraform apply

Terraform and provider versions

Terraform v1.3.9
on darwin_amd64

  • provider registry.terraform.io/databricks/databricks v1.11.1

Debug Output

Important Factoids

@nkvuong nkvuong changed the title [ISSUE] Issue with databricks_permissions resource [ISSUE] Issue with databricks_permissions resource on databricks_sql_endpoint Mar 27, 2023
@nfx nfx closed this as completed in #2168 Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant