OpenTofu is an open-source tool for building, changing, and versioning infrastructure safely. It manages popular cloud providers and custom in-house systems using declarative configuration.
Overview
OpenTofu lets you manage cloud and datacenter infrastructure declaratively. Configuration describes the desired state of resources; the tool plans and applies changes so operators can version infrastructure the same way they version application code.
Before changes run, OpenTofu generates an execution plan that lists what will be created, updated, or destroyed. That preview step is meant to reduce surprises when resources are modified in production or shared environments.
OpenTofu builds a dependency graph across resources and can work on independent resources in parallel where the graph allows. Together with structured plans, that helps teams understand ordering and apply larger changesets with less manual coordination.
The project extends core workflows with community-driven capabilities such as selective resource exclusion during plan and apply, provider iteration with foreach, earlier evaluation of variables and locals, and optional client-side encryption for stored state. Providers and modules are published through the OpenTofu Registry, searchable separately from the core CLI.
OpenTofu began as a community continuation after licensing changes in the upstream Terraform ecosystem, with a goal of remaining open source under foundation governance while preserving familiar workflows for practitioners.
Key features
- Declarative infrastructure configuration
- Plan step before apply
- Resource dependency graph
- Parallel resource operations
- State encryption options
- Provider foreach configurations
- Exclude flag for targeted operations
- OpenTofu Registry for modules
Use cases
- Multi-cloud infrastructure provisioning
- Versioned datacenter blueprints
- Controlled production change rollouts
- Shared reusable infrastructure modules
Does the same job as
OpenTofu doesn't name these products itself, but its own description shows it does the same job.