OpenTofu compatibility and licensing
What OpenTofu is
OpenTofu is an independently developed infrastructure-as-code CLI descended from Terraform. It uses the same broad configuration model: resources describe desired infrastructure, providers implement operations, and state connects resource addresses to managed objects. The executable is named tofu. Its project emerged in 2023 following HashiCorp’s licensing change, with community governance under the Linux Foundation. The project is MPL-2.0 licensed; modern Terraform releases use Business Source License terms, while older releases may have different terms. Review the exact release license and separate provider, module and hosted-service terms. This is technical context, not a legal determination. See https://opentofu.org/faq/ and https://www.hashicorp.com/de/license-faq.
Compare the engines, not only the names
A common configuration grammar is a useful starting point, not proof of compatibility. A provider binary, a module, a backend configuration and a saved plan are different artifacts. Verify each separately. For instance, OpenTofu 1.7 introduced native state and plan encryption; a Terraform installation should not be assumed able to consume that encrypted format. Later Terraform features covered in the preceding chapter also require independent target support checks.
Engine: Terraform 1.14.8 (inherited provisional)Target: OpenTofu 1.11 documentation lane; exact patch TBDProvider versions: inventory requiredBackend and readers: inventory requiredLicense and support: review requiredDecision: HOLD pending evidenceThe target documentation lane is an illustration, not a recommendation to install that version or a claim that the source-to-target pair is supported. Verify exact releases, security patches and upgrade steps before authorizing a rehearsal.
A shared local configuration
This small provider-free configuration is intended for a fresh isolated directory with a local backend and no inherited credentials or state. Both engines have a built-in terraform_data resource in their relevant modern releases. The version constraint describes a broad syntax lane; a real lab must pin an exact approved executable.
terraform { required_version = ">= 1.7.0, < 2.0.0"}
resource "terraform_data" "label" { input = "migration-demo"}
output "label" { value = terraform_data.label.output}Expected output after a successful local apply is the string migration-demo. No cloud API or external provider is needed for this fixture. It has not been executed. The example is not evidence that an existing production configuration migrates successfully.
CLI and dependency boundaries
Use version inspection to identify the two executables. The remaining commands below are a workflow sketch only, for separately approved local fixture copies after reviewing configuration and executable provenance.
terraform versiontofu version# In separate isolated fixture copies after approval:terraform initterraform validateterraform plantofu inittofu validatetofu planInitialization may contact registries or configure a backend. The default provider registry can differ; fully qualified provider source addresses, selected versions, checksums and mirrors must be checked. Do not copy or edit lockfile hashes to suppress errors. Compare dependency resolution before upgrading anything. A saved plan is specific to its originating engine/version and environment; create and review a new plan rather than transferring it between tools. Validation checks configuration, not actual remote compatibility. See https://opentofu.org/docs/language/providers/requirements/ and https://opentofu.org/docs/cli/commands/init/.
A migration decision matrix
Imagine a team using three modules and a shared state backend. Evaluate the exact source and target CLI versions, feature support, provider schemas and packages, module sources, lockfile, backend locking, state readers, saved-plan handling, operational ownership, support and licensing.
Candidate A: approved local configuration, verified target pair -> reviewCandidate B: provider unavailable on target -> HOLDCandidate C: encrypted output consumed by unsupported reader -> HOLDCandidate D: license review incomplete -> HOLDHold a migration when evidence is missing. Even a matching plan is not a complete production release decision. A compatibility promise is scoped to the product that makes it; it does not certify every cross-engine combination. Use the worksheet to identify the evidence for each row. See https://opentofu.org/docs/language/v1-compatibility-promises/ and https://opentofu.org/docs/intro/migration/migration-guide/.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
OpenTofu compatibility and licensing — knowledge check
Review migration compatibility, encryption and recovery.
What is OpenTofu?
What determines license applicability?
A module parses in both tools. What is proven?
What should happen when a provider checksum differs unexpectedly?
Which plan should a target engine apply?