Published:
Last updated:
Terraform and OpenTofu
Terraform (and its open-source fork OpenTofu) are the industry standards for Infrastructure as Code. They allow cloud resources to be defined in a declarative language (HCL).
Core concept
Write, Plan, Apply: resources are defined in text files. Terraform creates an execution plan and ensures that the actual state in the cloud (AWS, Azure, etc.) matches the code. The provider model enables control of virtually any cloud API.
Assessment
- Use case: Managing cloud infrastructure, Kubernetes clusters, and SaaS configurations.
- Advantage: Complete reproducibility of infrastructure, version control for ops, and support for multi-cloud scenarios.
- Limitation: Errors in code can have massive impact on live infrastructure (state management is critical).
- Licence: HashiCorp switched to the Business Source License (BSL) in 2023, restricting commercial use in competing products. OpenTofu (MPL-2.0, Linux Foundation) is the free community fork and drop-in replacement.
Related topics
- IaC and GitOps, the automation context for Terraform and OpenTofu.
- Platform Engineering, the platform context for Terraform and OpenTofu.
References
- HashiCorp Terraform, Documentation. Official reference for language, providers, and workflows. (2024). developer.hashicorp.com/terraform
- Wikipedia Terraform (software). Encyclopaedic overview. (2024). en.wikipedia.org/wiki/Terraform_(software
- OpenTofu OpenTofu, Official Website. Open-source fork under MPL-2.0 (Linux Foundation). (2023). opentofu.org/
- GitHub opentofu/opentofu. Source code repository. (2023). github.com/opentofu/opentofu
Ask AI
These links open external AI services, the conversation and its content are sent to their providers.