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
FUTURE GRANTS are updated everytime #1573
Comments
this is because you have to change the id for all resources which is granting permissions. for example database_grants and etc. it will recreate new resources after with correct id.. and nothing will be updated after |
@systematics78 - Thank you for your reply. I would have assumed the same, that it updates the id but then I checked snowflake and saw the grant queries getting executed. |
I also just upgraded my Terraform Provider from 0.49.0 to 0.58.0. Every apply, drift was detected for role grants and database grants. I was able to resolve the role grants drift, by removing the resources from the state and reapplying as @systematics78 mentioned: But that didn't do the trick for snowflake_database_grants . Still drift there for every apply |
I'm seeing the same behavior with I'm using Snowflake provider version |
I am also observing this bug and documented it in #1981 |
Hey 👋 Resources Data sources |
Provider Version
0.56.0
Terraform Version
1.3.6
Describe the bug
For resource "snowflake_table_grant", "snowflake_schema_grant", "snowflake_view_grant" provider does record FUTURE grants in state file. Changes are applied at each run with "+create" for role name.
error message
Expected behavior
No updates should be applied.
Code samples and commands
The text was updated successfully, but these errors were encountered: