Ensure resources support State move interface to allow for moved
The following discussion from !2876 (merged) should be addressed:
-
@timofurrer started a discussion: (+3 comments)
@PatrickRice @heidi.berry I just stumbled upon these errors for the
gitlab_project_deploy_tokenresource when trying to move it from thegitlab_deploy_token:Planning failed. OpenTofu encountered an error while generating this plan. ╷ │ Error: Unable to Move Resource State │ │ with gitlab_project_deploy_token.private_projects["gitlab-org/customers-gitlab-com"], │ on main.tf line 111, in resource "gitlab_project_deploy_token" "private_projects": │ 111: resource "gitlab_project_deploy_token" "private_projects" { │ │ The target resource implementation does not include move resource state │ support. The resource implementation can be updated by the provider │ developers to include this support with the ResourceWithMoveState │ interface. │ │ Source Provider Address: gitlab │ Source Resource Type: gitlab_deploy_token │ Source Resource Schema Version: 1 │ Target Resource Type: gitlab_project_deploy_token ╵``` To be honest, I haven't seen this before. I think we need to make sure that we support that for all the resources. This happens with OpenTofu 1.11.3. It comes from here: https://gitlab.com/gitlab-org/frontend/renovate-gitlab-bot/-/jobs/12799074840
Edited by 🤖 GitLab Bot 🤖