Open myshon opened 2 weeks ago
Hey @myshon. Thanks for reaching out to us.
If you don't want to use terraform rm
as described in our resource migration guide, you can use the equivalent: removed
block (https://developer.hashicorp.com/terraform/language/resources/syntax#removing-resources).
Terraform CLI Version
1.8.5
Terraform Provider Version
0.94.1
Terraform Configuration
Category
category:resource
Object type(s)
No response
Expected Behavior
Migration
snowflake_role
->snowflake_account_role
without DROP ROLE. I would like to avoid state manipulation using CLI.Actual Behavior
Removing resource
snowflake_role
caused resource destroy and drop role.Steps to Reproduce
I've used snowflake role resource
After updating to
0.94.x
resource has been deprecated in favor ofsnowflake_account_role
. Therefore, I added new resource with proper import.Resource has been imported correctly.
In the next run, I tried to remove deprecated resources along with import statement. It ended with
However, removing resource
snowflake_role
caused resource destroy and drop role.How to migrate
snowflake_role
->snowflake_account_role
without DROP ROLE? I would like to avoid state manipulation using CLI.How much impact is this issue causing?
Medium
Logs
No response
Additional Information
No response