- Notifications
You must be signed in to change notification settings - Fork101
Closed
Milestone
Description
I've spent several hours trying to figure out why I can't use themoved
block with my provider...and I'm quite sure the reason is that nobody actually bothered to test this functionality before. I may be wrong, but...PR#1038 fixes it. Also seehashicorp/terraform-plugin-go#432.
Module version
v1.11.0
Relevant provider source code
func (r*MyResource)MoveState(ctx context.Context) []resource.StateMover {panic("this never gets executed")}
Terraform Configuration Files
moved {from=my_old_resource.loremto=my_resource.ipsum}
Debug Output
I think it's not relevant
Expected Behavior
I'd expect to see a panic...or to be more precise, I'd expect thatterraform plan
would execute theMoveState
method of my providers resource.
Actual Behavior
│ Error: Unsupported `moved` across resource types││ on main.tf line 135:│ 135: moved {││ The provider "X" does not support moved operations across resource types and providers.
Steps to Reproduce
Try implement the move in your provider.