Skip to content
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 moved blocks between version-suffixed and non-suffixed resource types #2540

Open
sybereal opened this issue Jul 3, 2024 · 0 comments

Comments

@sybereal
Copy link

sybereal commented Jul 3, 2024

Description

Terraform 1.8.0 added support for moved blocks in which the source and destination resource types differ. This support, however, depends on the provider declaring support for this operation. The request is for the Kubernetes Terraform provider to support use of moved blocks to convert, e.g., kubernetes_deployment resources to kubernetes_deployment_v1.

Potential Terraform Configuration

# old.tf
resource "kubernetes_deployment" "my_deployment" {
  ...
}

# new.tf
resource "kubernetes_deployment_v1" "my_deployment" {
  ...
}

moved {
  from = kubernetes_deployment.my_deployment
  to   = kubernetes_deployment_v1.my_deployment
}

References

#2301 was closed, but at the time, Terraform support for cross-resource-type moved blocks did not exist yet.

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant