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] databricks_grants on UC external location empty list error #1202

Closed
npfroiland opened this issue Mar 17, 2022 · 3 comments
Closed

[ISSUE] databricks_grants on UC external location empty list error #1202

npfroiland opened this issue Mar 17, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@npfroiland
Copy link

Configuration

resource "databricks_grants" "poc_external_location_grants" {
  external_location = databricks_external_location.poc_external_location.id
  grant {
    principal  = "admins"
    privileges = ["CREATE TABLE", "READ FILES", "WRITE FILES"]
  }
}

Expected Behavior

  1. UC external location grants created.

Note: this to applies databricks_grants for both external_location = and storage_credential = .

Actual Behavior

  1. │ Error: cannot read grants: got empty permissions list

Steps to Reproduce

  1. terraform apply

Terraform and provider versions

Terraform v1.1.7
+ provider registry.terraform.io/databrickslabs/databricks v0.5.4
@nfx nfx added the bug Something isn't working label Mar 29, 2022
@nkvuong
Copy link
Contributor

nkvuong commented Apr 14, 2022

This is due to privilege name mismatch between UC API & provider configuration
READ FILES vs. READ_FILES

@nfx
Copy link
Contributor

nfx commented Apr 20, 2022

@nkvuong can you try it out and make a PR? there's a small mapping that needs changing

@nfx
Copy link
Contributor

nfx commented Apr 22, 2022

Fixed in #1240

@nfx nfx closed this as completed Apr 22, 2022
@nfx nfx mentioned this issue Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants