Interview Prep/Terraform/IaC and Terraform Fundamentals

Can you migrate between Terraform and OpenTofu?

IntermediateConceptIaC and Terraform Fundamentals
Answer

For Terraform up to roughly 1.5 to 1.6 with standard config it is mostly a binary swap: back up state, install tofu, run tofu init and tofu plan and check for no diff. Providers resolve from registry.opentofu.org. Newer Terraform-only features (such as ephemeral resources or write-only attributes) may not parse, so check compatibility first and migrate non-prod before prod.

All Terraform questions Roadmap: Terraform

More on IaC and Terraform Fundamentals