OpenTofu: Open Source Infrastructure as Code cover

Technology · Ebook

OpenTofu: Open Source Infrastructure as Code

by Shriira Press

4.7(365)180 pagesPublished 2026

OpenTofu is an open-source infrastructure-as-code tool, governed under the Linux Foundation, that lets you declare cloud and platform resources in configuration files and bring them into being with a single workflow. Born as a community fork of Terraform after its license changed, OpenTofu stays a drop-in, permanently open tool while pushing its own features forward. This book takes you from the problem of managing infrastructure by hand to a working command of the whole system: the HCL configuration language, the provider plugin model that talks to thousands of APIs, the state file that remembers your infrastructure, the plan-and-apply workflow built on a dependency graph, modules for reuse, and OpenTofu's own additions — client-side state encryption, early evaluation, and dynamic providers.

Contents

  1. 1Preface
  2. 2Chapter 1 — What OpenTofu Is
  3. 3Chapter 2 — The Infrastructure-as-Code Problem
  4. 4Chapter 3 — The HCL Configuration Language
  5. 5Chapter 4 — Providers and the Plugin Model
  6. 6Chapter 5 — State
  7. 7Chapter 6 — Plan and Apply
  8. 8Chapter 7 — Modules
  9. 9Chapter 8 — State Encryption
  10. 10Chapter 9 — Early Evaluation and Dynamic Providers
  11. 11Chapter 10 — OpenTofu in Practice