Snowflake-Labs / terraform-provider-snowflake

Terraform provider for managing Snowflake accounts
https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest
MIT License
552 stars 420 forks source link

fix: Fix user resource import #3181

Closed sfc-gh-asawicki closed 1 week ago

sfc-gh-asawicki commented 2 weeks ago

Handle user import correctly.

Password is empty after the snowflake_user import; we can't read it from the config or from Snowflake. During the next terraform plan+apply it's updated to the "same" value. It results in an error on Snowflake side: New password rejected by current password policy. Reason: 'PRIOR_USE'. The error will be ignored on the provider side (after all, it means that the password in state is the same as on Snowflake side). Still, plan+apply is needed after importing user.

github-actions[bot] commented 2 weeks ago

Integration tests cancelled for c625dbb510408ce6eceefc6e6bb3547123e23e0f

github-actions[bot] commented 2 weeks ago

Integration tests failure for d048236773ac2313491586b34f5e445fd2103680

github-actions[bot] commented 1 week ago

Integration tests cancelled for 1f0c2314294174ff0492853259bf08d71c2f9c83