<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Terraform databricks_grants errors on external_location in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/terraform-databricks-grants-errors-on-external-location/m-p/71795#M1249</link>
    <description>&lt;P&gt;We are using terraform to setup Unity Catalog external locations and when using databricks_grants to set permissions on the external locations it throws the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Error: cannot create grants: permissions for external_location-test_location are &amp;amp;{[{TEST_ROLE [ALL_PRIVILEGES] [Principal]}]}, but have to be {[{TEST_ROLE [ALL_PRIVILEGES] []}]}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the plan output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# databricks_grants.external_locations["test_location"] will be created
  + resource "databricks_grants" "external_locations" {
      + external_location = "test_location"
      + id                = (known after apply)

      + grant {
          + principal  = "TEST_ROLE"
          + privileges = [
              + "ALL_PRIVILEGES",
            ]
        }
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have tried multiple TF and Databricks provider versions including latest and all throw the same error.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Conlyn&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jun 2024 18:42:27 GMT</pubDate>
    <dc:creator>Conlyn</dc:creator>
    <dc:date>2024-06-05T18:42:27Z</dc:date>
    <item>
      <title>Terraform databricks_grants errors on external_location</title>
      <link>https://community.databricks.com/t5/administration-architecture/terraform-databricks-grants-errors-on-external-location/m-p/71795#M1249</link>
      <description>&lt;P&gt;We are using terraform to setup Unity Catalog external locations and when using databricks_grants to set permissions on the external locations it throws the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Error: cannot create grants: permissions for external_location-test_location are &amp;amp;{[{TEST_ROLE [ALL_PRIVILEGES] [Principal]}]}, but have to be {[{TEST_ROLE [ALL_PRIVILEGES] []}]}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the plan output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# databricks_grants.external_locations["test_location"] will be created
  + resource "databricks_grants" "external_locations" {
      + external_location = "test_location"
      + id                = (known after apply)

      + grant {
          + principal  = "TEST_ROLE"
          + privileges = [
              + "ALL_PRIVILEGES",
            ]
        }
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have tried multiple TF and Databricks provider versions including latest and all throw the same error.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Conlyn&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 18:42:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/terraform-databricks-grants-errors-on-external-location/m-p/71795#M1249</guid>
      <dc:creator>Conlyn</dc:creator>
      <dc:date>2024-06-05T18:42:27Z</dc:date>
    </item>
    <item>
      <title>Re: Terraform databricks_grants errors on external_location</title>
      <link>https://community.databricks.com/t5/administration-architecture/terraform-databricks-grants-errors-on-external-location/m-p/71803#M1250</link>
      <description>&lt;P&gt;I should mention that the apply actually succeeds setting the permission, but the error is output and the state file only lists the workspace and external_location data elements.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 20:18:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/terraform-databricks-grants-errors-on-external-location/m-p/71803#M1250</guid>
      <dc:creator>Conlyn</dc:creator>
      <dc:date>2024-06-05T20:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Terraform databricks_grants errors on external_location</title>
      <link>https://community.databricks.com/t5/administration-architecture/terraform-databricks-grants-errors-on-external-location/m-p/71813#M1252</link>
      <description>&lt;P&gt;I figured out my issue... The principal name is case sensitive and if the input value doesn't match the case of the email address or Group Name in the workspace/account it throws that ambiguous error.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 22:38:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/terraform-databricks-grants-errors-on-external-location/m-p/71813#M1252</guid>
      <dc:creator>Conlyn</dc:creator>
      <dc:date>2024-06-05T22:38:37Z</dc:date>
    </item>
  </channel>
</rss>

