Has anyone figured out to import existing grant priveleges with the generate-config-out flag? #2510
Replies: 2 comments 1 reply
-
Hey @ndnchapathi69 |
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing @sfc-gh-jcieslak , I wanted to add, we are not doing a resource migration, but have been managing snowflake via UI/SQL for the past few years and have decided to make the shift over to terraform. Specifically for existing granted privileges to roles, is there a recommendation on how i can get everything that is in snowflake to a terraform config file? |
Beta Was this translation helpful? Give feedback.
-
I have a role in snowflake and I want to be able to import all the privleges it has been granted so I can build my snowflake_grant_privileges_to_account_role resource. I've seen the examples, but haven't quite figure out how to get it working/setting up on my local.
ROLE: "TEST_ROLE"
SQL: "SHOW GRANTS TO TEST ROLE"
In my import.tf i added:
I'm not sure what the id would be considered for the existing role in snowflake.
command:
terraform import "TEST_ROLE|TRUE|TRUE|ALL|OnAccount
command:
terraform plan -generate-config-out=generated.tf
Any idea what i'm doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions