[Bug]: Can't Destroy snowflake_grant_ownership
resource when more grants exist
#3220
Labels
general-usage
General help/usage questions
Terraform CLI Version
1.9.8
Terraform Provider Version
0.97.0
Company Name
Easypark
Terraform Configuration
Category
category:grants
Object type(s)
resource:grant_ownership, resource:grant_privileges_to_account_role
Expected Behavior
When doing anything which will result in
snowflake_grant_ownership
to be destroyed (even if recreated), the resource would be destroyed and ownership would revert to the original (or previous, or designated, etc.) owner.Actual Behavior
The destroy fails with error:
Steps to Reproduce
var.set_ownership_to
) to any role exceptSYSADMIN
orSECURITYADMIN
How much impact is this issue causing?
Medium
Logs
https://gist.github.com/AaronCoquet-Easypark/f75f47973e4b39cb68b7b28dad47e217
Additional Information
This seems to be similar to #3143, but is distinct from it. Once resolved, I fear that this issue will reveal that #3143 is also present.
Would you like to implement a fix?
The text was updated successfully, but these errors were encountered: