Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The provider "X" does not support moved operations across resource types and providers #1039

Closed
Labels
bugSomething isn't working
Milestone
@grongor

Description

@grongor

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.

References

#1038
hashicorp/terraform-plugin-go#432

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp