-
Notifications
You must be signed in to change notification settings - Fork 233
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
Support for the moved block #1411
Comments
Hey there @sfc-gh-jcieslak 👋🏻 , Apologies, but there currently aren't any plans to introduce support for moving across resource types (which is tied to the new
|
Hey @austinvalle 👋 |
Yeah that is the only option I can think of if migrating the resource to |
SDK version
This is our current version, but I guess this proposes an improvement that can be added in the later versions.
Use-cases
My team and I are developing a provider (Snowflake Terraform Provider) that, in recent versions, contains many migrations between old deprecated resources and their new counterparts. This is very frustrating for our customers and for us because there's no easy option to help them with the use of SDK.
We had a lot of questions about utilizing the moved block to somehow support the migration, but as we checked this feature is only available in the new plugin framework. Some day, we would like to move to the plugin framework, but until that, we have to support the current migration.
Would it be possible to bring in the
moved
block to the SDKv2?If not, are there any better alternatives than removing the state from the old resource and importing the new one?
Attempted Solutions
As far as we know, the SDK is pretty limited in that area. The only thing we were able to find was put into our migration guide, which basically suggests removing the state of the deprecated resource and importing the new one.
Proposal
We are not familiar with the SDK's implementation details, so we need a little help in this one.
References
-
The text was updated successfully, but these errors were encountered: