Closed daniprado closed 1 year ago
+1 Facing a similar issue
Principal: UserName(OWNER_EMAIL) does not exist
, this is what we are getting for every Terraform Apply
+1 Facing exact same issue as @panselaukik
There is the same problem with other resources e.g. jobs and clusters (provider sets implicitly the authenticated user as an owner). So my work around (to be able to see plan when running as a regular user) is to grant explicitly rights (IS_OWNER
or CAN_MANAGE
) to the service principal deploying the resource. However for sql endpoint: Error: permission_level IS_OWNER is not supported with sql_endpoint_id objects
and this is the bigger issue for me.
Configuration
Expected Behavior
As
IS_OWNER
permission onaccess_control
block cannot be provided, it should be completely ignored by the Terraform execution.Actual Behavior
Whenever a
terraform apply
is executed, theIS_OWNER
block is marked for deletion. This does not happen so that the block will appear again next time, causing the resource to be "modified" on every execution.UPDATE: This apparently happens only when the current owner of the SQL Warehouse is not the user executing the Terraform plan/apply.
Steps to Reproduce
databricks_sql_endpoint
databricks_permissions
resource attached to it.Terraform and provider versions
Debug Output
Important Factoids
N/A