-
Notifications
You must be signed in to change notification settings - Fork 427
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
Destroying snowflake_grant_privileges_to_role resources fails at apply time with validation error. "exactly one of AllPrivileges, GlobalPrivileges...." #2069
Comments
Hi there, I've encountered a similar issue and found a workaround that might help others facing this problem. While this doesn't address the root cause, it provides a temporary solution to successfully run the terraform destroy command. Workaround:
It's important to note that this workaround bypasses the actual problem. The root issue looks like a bug in the Snowflake Terraform provider. I hope this helps in the interim, but I'd recommend the maintainers to investigate this further for a more permanent fix. I would like for the root cause of this issue to be addressed. I face this issue very frequently. |
@jacobcbeaudin thanks and yes, I did something similar using |
Issue still present in 0.77.0
After granting IMPORTED PRIVILEGES with snowflake_grant_privileges_to_role on database SNOWFLAKE, when it is time to destroy I receive: Error: error revoking privileges from account role: [grants_validations.go:46] Duplicates: 2068 |
Hey @liamjamesfoley please close this if that's the same issue as in #2068 |
Provider Version
"0.69"
Terraform Version
1.5.2
The version of Terraform you were using when the bug was encountered.
Can't destroy
snowflake_grant_privileges_to_role
resources.A clear and concise description of what the bug is.
I'm trying to destroy a module that creates some roles and does a bunch of grants via
snowflake_grant_privileges_to_role
, but I cannot destroy the resources b/c I keep getting:terraform-provider-snowflake/pkg/sdk/grants_validations.go
Line 38 in 538efa5
A clear and concise description of what you expected to happen.
I expect the resources to be destroyed.
Please add code examples and commands that were run to cause the problem.
The plan:
The apply error:
The text was updated successfully, but these errors were encountered: