-
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
A grant per role causes changes outside terraform and resources are updated #733
Comments
ie: you can't have two grants for the same privilege with a different set of roles otherwise they clobber each other and the terraform state only reflects the last role applied and so things there are changes applied outside of terraform. see Snowflake-Labs/terraform-provider-snowflake#733
Seems if you have two grants for the same privilege with a different set of roles they clobber each other, and the terraform state only reflects the last role applied. On the next apply, terraform thinks there are changes applied outside of Terraform. To resolve, only have one grant for a privilege, eg:
|
I do wonder though, could the grants be tracked per role in the state file instead? |
Plus one on this issue. This means that we can only call the grant once, as if we call it more than once it will create duplicate ids. |
Resolved by #824 |
Provider Version
0.25.22
Terraform Version
1.0.9
Describe the bug
Expected behavior
No changes detected and the grant is not recreated.
Code samples and commands
The text was updated successfully, but these errors were encountered: