Breaking: Removing ALL grants #318
Replies: 4 comments 4 replies
-
Note that this was merged in #322 and just released in 0.19.0. |
Beta Was this translation helpful? Give feedback.
-
We have some modules in our public modules repo that re-implement an approximation of ALL in pure-terraform. Example here. Docs coming soon. |
Beta Was this translation helpful? Give feedback.
-
Hi @ryanking,
but if I try to run
it's fair, but if I try to remove shares, I get
I am sorry, I have never worked with modules in Terraform, so it could definitely be a mistake on my side. Could you please provide an example how to call a similar example? Thank you! |
Beta Was this translation helpful? Give feedback.
-
Did this module being used and official? I see not updates after an year. |
Beta Was this translation helpful? Give feedback.
-
tl;dr
We are dropping support for
ALL
grants directly through the provider. To fill this gap, we will make available Terraform Modules that grant each privilege in theALL
set.Why?
The
ALL
grant (for tables, schemas, databases, etc..) is somewhat challenging to work with through a Terraform Provider. When you grantALL
privileges, Snowflake will "translate" this to the set of each individual privilege in theALL
set at that given point in time. Therefore, we can't reliably query Snowflake to know ifx
resource had anALL
grant. Some scenarios that are ill-defined:When?
Expect to ship this over the next couple of weeks. You can pin your provider version if you need more time to upgrade.
What can I do instead?
We will be publishing and maintaining Terraform modules that replicate the
ALL
grant functionality. An example module. We will be updating the documentation to reflect these changes.We are now doing codegen for these ALL modules.
Beta Was this translation helpful? Give feedback.
All reactions