Whats the new import statement for role_grants? #3179
-
I want to migrate my roles and role grants from Provider v0.71 -> v0.92 with "No-Downtime" for specific resources. Thus, I dumped the deprecated resources, recreated them with the new rules and deleted the old implementations of role_grants out of the state file.
Throwing this error: Can anybody help? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hey @jayjay-ayjay. Thanks for reaching out to us. The import statement is documented here: https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest/docs/resources/grant_account_role#import. |
Beta Was this translation helpful? Give feedback.
Info for other readers:
sfc-gh-asawicki and I solved it as follows:
terraform import module.my_snowflake_module["MY_PARENT_ROLE"].snowflake_grant_account_role.role_grants["MY_CHILD_ROLE"] '"MY_CHILD_ROLE"|ROLE|"MY_PARENT_ROLE"'
My role functionality is inside a module. Otherwise the default statement should be used though.