-
Notifications
You must be signed in to change notification settings - Fork 431
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
[Bug]: permadiff in snowflake_network_policy_attachment and snowflake_legacy_service_user causes removal #3404
Comments
Hey @RobbertDM. Thanks for reaching out to us. You should not use these two resources together; the network policy is settable on all user resources (including snowflake_legacy_service_user). PLease check this migration guide entry: https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md#breaking-change-snowflake_network_policy_attachment-usage-with-snowflake_user. I will clarify the docs. |
🤖 I have created a release *beep* *boop* --- ## [1.0.4](v1.0.3...v1.0.4) (2025-02-26) ### 🔧 **Misc** * Add GA scope to the roadmap ([#3385](#3385)) ([9be2196](9be2196)) * Adjust saml2_integration documentation ([#3415](#3415)) ([b8c127d](b8c127d)) * Bump Go version ([#3408](#3408)) ([902670e](902670e)) * Bump provider version ([#3419](#3419)) ([552e44b](552e44b)) * Remove hardcoded values from documentation ([#3381](#3381)) ([cb1d6e2](cb1d6e2)) * Update user docs ([#3416](#3416)) ([9d5224f](9d5224f)), closes [#3404](#3404) * Upgrade deps ([#3389](#3389)) ([086bf15](086bf15)) ### 🐛 **Bug fixes:** * account for null comment ([#3417](#3417)) ([2f7f80f](2f7f80f)) * external function varchar return type validation ([#3400](#3400)) ([abf5883](abf5883)) * Fix managed account and adjust account ticket numbers ([#3395](#3395)) ([a7cb5cb](a7cb5cb)) * Propose changes to assertions setup with varying test client ([#3406](#3406)) ([fb27f6a](fb27f6a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: snowflake-release-please[bot] <105954990+snowflake-release-please[bot]@users.noreply.github.com>
Indeed @sfc-gh-asawicki , this works after applying twice: one to remove the |
Terraform CLI Version
1.3.8
Terraform Provider Version
1.0.2
Company Name
No response
Terraform Configuration
Category
category:resource
Object type(s)
resource:network_policy_attachment
Expected Behavior
I expect the network policy attachment to provisioned once and then at each subsequent
terraform apply
not to produce any differences.Actual Behavior
Each
terraform apply
causes a diff for the network policy attachment:First:
Then:
After this, the cycle starts over. When the first one is applied, the network policy gets unattached from the service user!
Steps to Reproduce
snowflake_legacy_service_user
snowflake_network_policy
snowflake_network_policy_attachment
and attach it to that userterraform apply
twice.How much impact is this issue causing?
Medium
Logs
No response
Additional Information
No response
Would you like to implement a fix?
The text was updated successfully, but these errors were encountered: