User network policy attachments and migration to v0.95 #3048
-
Hi, I want to migrate to v0.95.0 provider version but I have a question about network policy attachments. Before v0.95, I attached network policies to users using the Since v0.95, there is a new The migration guide about this :
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hey @ppo-38. Yes, I will update the migration guide, because this is not clear there. Essentially, this resource should be treated similarly to
We will most likely leave the resource for situations where user creation is not managed through Terraform (to leave an option to assign network policies if needed). |
Beta Was this translation helpful? Give feedback.
-
Hey @sfc-gh-asawicki, thank you for your answer. So I will also remove |
Beta Was this translation helpful? Give feedback.
-
Hey. This is expected behavior originating from how the Snowflake parameter hierarchies work. We wanted to have the same behavior on the provider side (check more here, here, and here). It is also the reason why |
Beta Was this translation helpful? Give feedback.
Hey @ppo-38. Yes, I will update the migration guide, because this is not clear there.
Essentially, this resource should be treated similarly to
snowflake_user_public_key
(which is mentioned in the migration guide here: https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md#breaking-change-snowflake_user_public_keys-usage-with-snowflake_user). There are two differences, though:W…