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_grants resource Error: cannot create grant: permissions when called in parallel #4162

Open
LittleWat opened this issue Oct 28, 2024 · 0 comments

Comments

@LittleWat
Copy link
Contributor

LittleWat commented Oct 28, 2024

Configuration

!!! NOTE
Using databricks_grants not databricks_grant

resource "databricks_grants" "external_location" {
  provider          = databricks.workspace
  external_location = databricks_external_location.catalog_location.id
  grant {
    principal  = var.admin_group_display_name
    privileges = ["ALL_PRIVILEGES"]
  }
  grant {
    principal  = var.regular_group_display_name
    privileges = ["READ_FILES"]
  }
}

Expected Behavior

can create the grants successfully

Actual Behavior

Error: cannot create grants: permissions for external_location-sandbox-dev-location are &{[]}, but have to be {[{sandbox_workspace_users [READ_FILES] []} {sandbox_workspace_admins [ALL_PRIVILEGES] []}]}
│
│   with databricks_grants.external_location,
│   on main.tf line 139, in resource "databricks_grants" "external_location":
│  139: resource "databricks_grants" "external_location" {
│

Steps to Reproduce

simply applying the tf above with calling it in parallel using Terragrunt

(these errors look like to be solved by rerunning terragrunt apply multiple times.

Terraform and provider versions

  • provider version: 1.53.0
  • opentofu version: 1.8.2

Is it a regression?

Debug Output

Important Factoids

Would you like to implement a fix?

@LittleWat LittleWat changed the title [ISSUE] Issue with databricks_grant**s** resource Error: cannot create grant: permissions [ISSUE] Issue with databricks_grant*s* resource Error: cannot create grant: permissions Oct 28, 2024
@LittleWat LittleWat changed the title [ISSUE] Issue with databricks_grant*s* resource Error: cannot create grant: permissions [ISSUE] Issue with databricks_grant*s* resource Error: cannot create grant: permissions Oct 28, 2024
@LittleWat LittleWat changed the title [ISSUE] Issue with databricks_grant*s* resource Error: cannot create grant: permissions [ISSUE] Issue with databricks_grant**s** resource Error: cannot create grant: permissions Oct 28, 2024
@LittleWat LittleWat changed the title [ISSUE] Issue with databricks_grant**s** resource Error: cannot create grant: permissions [ISSUE] Issue with databricks_grants resource Error: cannot create grant: permissions Oct 28, 2024
@LittleWat LittleWat changed the title [ISSUE] Issue with databricks_grants resource Error: cannot create grant: permissions [ISSUE] Issue with databricks_grants resource Error: cannot create grant: permissions Oct 28, 2024
@LittleWat LittleWat changed the title [ISSUE] Issue with databricks_grants resource Error: cannot create grant: permissions [ISSUE] Issue with databricks_grants resource Error: cannot create grant: permissions when called in parallel Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant