[Feature]: Allow easier management of Snowflake user TYPE #3366
Labels
category:migration
Issues connected with migration to v1.0.0.
category:resource
feature-request
Used to mark issues with provider's missing functionalities
resource:legacy_service_user
resource:service_user
resource:user
Issue connected to the snowflake_user resource
Use Cases or Problem Statement
The Snowflake provider supports several user resources:
The main difference between these appears to be the TYPE attribute configured on the user (PERSON, SERVICE or LEGACY_SERVICE, respectively).
If I create a
snowflake_user
resource and later try to convert it to asnowflake_service_user
, I should be able to use amoved
block (link) to do so:Currently, that is not possible - the provider throws an error:
The only other solutions are to:
terraform state mv/rm
andterraform import
(impacts development workflows by requiring a manual "freeze" of state)Setting a user's TYPE is particularly important with the advent of changes to MFA on user accounts in Snowflake (see BCR-1784, etc).
It should be straightforward for users to adjust the TYPE of a user without having to recreate it or perform manual state modifications.
Category
category:resource
Object type(s)
resource:user
Proposal
Please consider either of the following:
snowflake_user
and providing atype = [HUMAN|SERVICE|LEGACY_SERVICE]
attribute rather than separate resourcesmoved
blocksThis would ease of correctly ensuring all provider-managed Snowflake users have the correct TYPE attributed to them.
How much impact is this issue causing?
Medium
Additional Information
See also Support Case: 00938884
Would you like to implement a fix?
The text was updated successfully, but these errors were encountered: