You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When renaming the role which is granted to other roles with the role_grants resource, an error is thrown:
│ Role 'FOO_TEST2' does not exist or not authorized.
│
│ with snowflake_role_grants.foo_to_bar,
│ on role_test.tf line 9, in resource "snowflake_role_grants" "foo_to_bar":
│ 9: resource "snowflake_role_grants" "foo_to_bar" {
Change name of snowflake_role.foo_test to e.g. "FOO_TEST".
Additional context
The problem is that the role_grants resource is not dropped before the role is renamed. A workaround is using a lifecycle policy, which forces the drop of the role_grants, when the name of the role is changed.
The text was updated successfully, but these errors were encountered:
Provider Version
0.57.0
Terraform Version
1.2.9
Describe the bug
When renaming the role which is granted to other roles with the role_grants resource, an error is thrown:
Expected behavior
Role is renamed without error.
Code samples and commands
Setup:
Change name of snowflake_role.foo_test to e.g. "FOO_TEST".
Additional context
The problem is that the role_grants resource is not dropped before the role is renamed. A workaround is using a lifecycle policy, which forces the drop of the role_grants, when the name of the role is changed.
The text was updated successfully, but these errors were encountered: