talira

OpenTofu

Open source infrastructure as code, a community-driven fork of Terraform

open sourceMPL-2.0self-hostablefreeMCP

Forked from Terraform in 2023. HashiCorp switched Terraform's licence from the MPL to the Business Source License v1.1 on 10 Aug 2023; with no response by 25 Aug to the community's request to switch back, they forked it to keep it truly open source (OpenTofu manifesto)

OpenTofu is a community-driven, Linux Foundation-stewarded fork of Terraform, made after HashiCorp moved Terraform to the Business Source License in 2023, and meant as a drop-in replacement that keeps existing Terraform configurations and workflows working. It has the same write, plan and apply workflow and state file, works with Terraform providers through its own public registry, and is licensed MPL-2.0. It has since added features of its own, such as state encryption.

Ways to install

Problems it solves

  • infrastructure as code tool with an open source licence after the Terraform licence change
  • our legal team won't sign off on the Business Source License that Terraform now uses
  • a drop-in replacement for Terraform that keeps my existing .tf files and state working
  • switch away from Terraform without rewriting all our modules
  • an infrastructure as code tool run by a foundation rather than a single vendor
  • we build a product on top of Terraform and the new licence could stop us selling it
  • encrypt the state file because it holds secrets in plain text
  • describe my cloud servers, networks and DNS in versioned config files and preview changes before applying
  • keep using the Terraform providers I already rely on with an open source CLI
  • manage AWS, Azure and Google Cloud resources from one open source tool

Features

  • drop-in replacement for Terraform
  • plan and apply workflow
  • public OpenTofu Registry of providers and modules
  • state encryption
  • works with providers written with the Terraform Plugin SDK
  • migration guides from Terraform

Capabilities

Has a command line toolplan not known
Has an MCP serverplan not known
Takes pluginsplan not known

Alternatives

The same job

These do what OpenTofu does.

  1. Terraform Infrastructure as code tool for building, changing and versioning cloud infrastructure
  2. Crossplane Build cloud native control planes that manage infrastructure and apps through Kubernetes APIs
  3. Pulumi Infrastructure as code for humans and agents
  4. AWS CloudFormation AWS's native infrastructure as code service
  5. Semaphore UI Modern UI and powerful API for Ansible, Terraform/OpenTofu/Terragrunt, PowerShell and other DevOps tools
  6. Atlantis Terraform Pull Request Automation

Compare OpenTofu with the top 3