-
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
[Bug]: snowflake_user: default_role attribute breaks the apply #2942
Comments
Hey @denzhel . Thanks for reaching out to us. The user resource is currently being redesigned as part of https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/ROADMAP.md#preparing-essential-ga-objects-for-the-provider-v1. This happens because |
Hi @sfc-gh-jmichalak , Either of those are not an option for us, we have dozens of users that were created with the previous provider we had. We're unable to create new users. When will the redesign happen ? |
@sfc-gh-asawicki is currently working on user redesign and this should be fixed in v0.94 in the next few weeks. |
Hey @denzhel. First of all, please do not do 40+ versions migrations, it's recommended to do versions-by-version migration iteratively, following our guidelines: https://github.com/Snowflake-Labs/terraform-provider-snowflake/blob/main/MIGRATION_GUIDE.md#migration-guide. You can use provider aliasing to manage users with the older version of the provider (https://developer.hashicorp.com/terraform/language/providers/configuration#alias-multiple-provider-configurations). |
You are right, it was a mistake on our end that we've waited for so long before upgrading the provider. Thanks for your honest and quick reply ! |
Can you please suggest what to set on the
|
You can either do |
I'm just thinking of a scenario of deleting the user, once it happens the revert command will fail due to the missing user. |
Fixed in #2947 (not released yet). |
Fix known user resource-connected issues: - Change the sensitiveness of name and login_name (References: #2662 #2668) - Handle "null" properly for the nullable bool text attributes in user (References: #2817) - Fix diff suppression for default_x in user resource (References: #2836) - Update the migration guide (References #2938 #2942) - Fix incorrect state after failed to alter (References #2970) - Confirm the problem with the computed disabled attribute (References #1572) - Confirm that the problem with the null-out password was already solved (References #1535) - Add TODO to handle days to expiry in user (References #1155) The next 2 PRs will contain: - adjusting user resource to our rework conventions (also adding additional fields and handling #1155 and #1572) - adjusting user datasource (will handle #2902) User rework will not include handling new types of users (service, legacy service); this will be done a bit later.
Hey @denzhel. |
Closing the issue due to inactivity. Please create a new one if the issue persists in the newest version of the provider. |
Terraform CLI Version
1.5.5
Terraform Provider Version
0.92.0
Terraform Configuration
Category
category:resource
Object type(s)
resource:user
Expected Behavior
Users to be created with a default_role that contains a hyphen as we created up until the upgrade from
0.56.1
to0.92.0
Actual Behavior
Query from Snowflake's UI:
Steps to Reproduce
"SA-TEST"
How much impact is this issue causing?
High
Logs
No response
Additional Information
No response
Would you like to implement a fix?
The text was updated successfully, but these errors were encountered: