-
Notifications
You must be signed in to change notification settings - Fork 427
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
ROW ACCESS POLICY ASSOCIATION #1600
Comments
same as this issue? |
I'm sorry but are there any plans to implement that? |
Hey @fr33z3. Yes, we will be doing that as part of https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/ROADMAP.md#supporting-all-snowflake-ga-features. We don't have a timeline yet, but we will share it as soon as we have it. |
@sfc-gh-asawicki that is awesome. Thank you. I'm just curious if there are any workarounds currently? |
Currently, the workaround for almost every use case is https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest/docs/resources/unsafe_execute. This is a dangerous resource, though, so please make sure you check its limitations before using. |
https://registry.terraform.io/providers/aidanmelen/snowsql/latest/docs/resources/exec You can use the snowsql_exec resource to execute queries. resource "snowsql_exec" "sf_metadata_utility_apply_row_access_policy" {
}
} |
@sfc-gh-asawicki thank you unsafe_execute solved my issue at the moment. |
name "unsafe_execute" confusing - :) Deprecation at the end snowflake admins executing the queries, scripts and so on, so on that case Snowflake should deprecate the DDL statements? From my opinion such kind of resources should not be depreciated. snowflake releasing many features which is not supported by current version of provider, updating provider also not easy process for some organizations. |
@systematics78 it's confusing for good reasons :) It was added to the provider to solve precisely the case you mentioned, but we want people to use it sparingly, hence the wall of warnings. We have had many discussions regarding this resource, and we will keep a "safer" version of it inside the provider. I can't give you any timeline now, but I can guarantee that we will not remove the unsafe resource without a suitable alternative. |
Hi @systematics78 @nosterlu @fr33z3 👋 For managing policies themselves, there is row_access_policy resource, which is currently being reworked. |
there is exists resources to create views, tables, row access policy, but there is no resources to associate policy with views or tables
The text was updated successfully, but these errors were encountered: