cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to add existing recipient to existing delta share

chethankumar
New Contributor III

I created a recipient in the Databricks console and also set up a Delta Share. Now, I’d like to link this existing recipient to the Delta Share. Is there a way to accomplish this using Terraform?

1 ACCEPTED SOLUTION

Accepted Solutions

Naïm
Databricks Employee
Databricks Employee

Hi Chethankumar,

Yes you can use the databricks_grants resource. To read more see the documentation of our terraform provider. 

Best regards,

Naïm 

View solution in original post

3 REPLIES 3

Naïm
Databricks Employee
Databricks Employee

Hi Chethankumar,

Yes you can use the databricks_grants resource. To read more see the documentation of our terraform provider. 

Best regards,

Naïm 

chethankumar
New Contributor III

Hi @Naïm 

Thanks for your response. It seems your answer is helping me, but I'm facing another issue. The owner of my recipient is a group, not an individual user. I'm running this Terraform script using a service principal that is a member of that group. However, I'm encountering the following issue when trying to create grants:
Error: cannot update grants: User is not an owner of Recipient 'abc'


resource "databricks_grants" "databricks_grants" {
share = "delta_sharing"
grant {
principal = "abc"
privileges = ["SELECT"]
}
}

Nurota
New Contributor II

Yes, it won't allow you until you are or the service principal that runs the changes in the CI is in the owner group. You can add the SP to the owners group, and that should solve it.