Comments (5)
I've worked around it by making all grants into a map (via for_each
) where the key includes the owner of the object so a change of owner will destroy/recreate each grant.
from terraform-provider-snowflake.
is there any follow-up on this ? I am using terraform 0.25.21 but still whenever I change the view, the grants are lost from snowflake side. I need then to do a second terraform apply to get the correct grants.
from terraform-provider-snowflake.
I think this ticket can be closed since it's been merged into main #153 and it's been released since https://github.com/Snowflake-Labs/terraform-provider-snowflake/releases/tag/v0.11.0.
I've just tested this out and I'm correctly seeing the COPY CURRENT GRANTS
on the SQL that terraform is running.
@ejaoua can you provide a bit more information on the issue you're seeing? (Log of the SQL that terraform runs, MVP of the terraform you're running, output of terraform providers
)?
from terraform-provider-snowflake.
@Relativity74205 does the new 'on_all' & 'on_future' parameters for object grants not support #153? I am getting the same error as @saperry above with the on_all and on_future parameters set to true when trying to grant privileges objects in a cloned database, and the corresponding snowflake activity sql text does not include the COPY CURRENT GRANTS
where the privilege == 'OWNERSHIP'.
from terraform-provider-snowflake.
I am seeing this problem as well. I guess it could be considered a "feature" since it is mapping new API parameters. However, it seems like a pretty important feature once one starts to get very far into using terraform to manage roles. However, it seems that all the *_grant resources need a copy_current_grants option for the case of ownership or there should be a separate resource for granting ownership similar to snowflake_role_ownership_grant except for all other grant resources.
from terraform-provider-snowflake.
Related Issues (20)
- `Share` object error messages are too opaque. HOT 1
- Create new warehouse is failing on v>77 HOT 7
- Dynamic Table does not update query on change HOT 1
- Cannot create inbound share because account ID conflicts with keyword. HOT 1
- Error 394300 (08004) when establishing connection with Snowflake using Terraform HOT 2
- Resource 'snowflake_grant_privileges_to_role' marks 'priveleges' attribute as changed regardless of any changes being made HOT 2
- Unable to use Dynamic Roles created inside of sub modules as providers HOT 2
- Error: The terraform-provider-snowflake_v0.80.0 plugin crashed HOT 5
- “Provider <> planned an invalid value” for task resource while upgrading from 0.47.0 to 0.80.0 HOT 2
- Add “CREATE STREAMLIT” privilege in grant_privileges_to_role resource HOT 2
- Remove deprecated configuration parameters from procedure resource HOT 2
- using partition_by for external table fails HOT 6
- incorrect order of precedence for SNOWFLAKE_ACCOUNT variable HOT 2
- Error Updating Resource Monitor to set Notify Users v0.81.0 HOT 1
- Error creating a simple Database object in Snowflake HOT 2
- Error: The terraform-provider-snowflake_v0.81.0 plugin crashed! HOT 2
- Incorrect application of future grant * in snowflake HOT 11
- terraform import failing for privileges grant import HOT 3
- Stack trace from the terraform-provider-snowflake_v0.82.0.exe plugin:panic: interface conversion: sdk.ObjectIdentifier is sdk.AccountObjectIdentifier, not sdk.SchemaObjectIdentifier HOT 7
- external_table column_type uses default even if other precision is specified HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-snowflake.