Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Robert Glenn

Rating No ratings yet

Your infrastructure as code isn't the place you want to "learn on the job." Cloud infrastructure pro Robert Glenn shares successful patterns you can use to simplify the challenge of managing Terraform at any scale, along with common antipatterns and how to mitigate them. Ideal for cloud architects, infrastructure specialists, and SREs who've already mastered the phrase "You don't have access to that repo," this book shows how to structure, organize, and architect your Terraform and OpenTofu projects with real-world constraints like organizational responsibilities or policy requirements.

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A field guide for teams that already know Terraform syntax but are drowning in state files, module sprawl, and organizational politics—Robert Glenn focuses on the architectural and human decisions that determine whether infrastructure as code survives contact with an enterprise. 【Book Arc】 - **Opening (~0%–10%)**: Frames the problem the book exists to solve—the "Bad 'Form!" scenario where a working Terraform setup suddenly blocks all changes—and traces how sysadmin shell scripts evolved into idempotent IaC and HCL dialects. Establishes that this is not a beginner's tutorial. - **Early (~10%–30%)**: Sets expectations for the reader: assumes prior Terraform/OpenTofu experience, explains the shared "TF" shorthand and CLI conventions, and positions the book as a complement to introductory texts rather than a replacement. - **Middle (~30%–55%)**: Builds the conceptual foundation unique to IaC—idempotency, plan/apply workflow, stored state and state locking, providers—and argues that IaC is more art than science, with few universally "best" practices. - **Late (~55%–85%)**: Moves into the enterprise concerns the blurb promises—structuring and layering modules, organizing projects around real organizational boundaries, access control, delivery pipelines, and policy requirements. (Excerpts do not cover the specific chapter-level detail here.) - **Ending (~85%–100%)**: Presumably consolidates patterns, antipatterns, and mitigations into guidance for scaling TF across an organization. (Excerpts do not cover this stage.) 【Book Arc note】The progression is deliberate: history and mindset → core IaC concepts → organizational architecture → practice. The excerpts are front-loaded, so later stages are inferred from the blurb and early framing rather than confirmed chapter content. 【Key Takeaways】 - **This is a second book, not a first** (Early): Glenn explicitly says if you want one foundational Terraform book, this isn't it. Value comes from assuming you've already written modules and hit a broken state—so read it after, not instead of, an intro text. - **IaC is an art with few universal best practices** (Middle): The author's central stance is that context—budgets, skillsets, agendas, biases—shapes what works. Treat recommendations as reasoned tradeoffs to evaluate, not commandments to apply blindly. - **HCL's loose, interpreted nature breeds dialects** (Opening): Because HCL is heavily interpreted and loosely formatted, organizations drift into inconsistent code styles, making quality enforcement and definitive best practices hard at scale. This is the root problem the book's structural guidance addresses. - **Idempotency and state are the load-bearing concepts** (Middle): Idempotent apply, plan-driven workflows, stored state, and state locking are what separate IaC from brittle shell scripts—and state locking in particular prevents concurrent applies and race conditions. - **Terraform and OpenTofu are treated as one practice** (Early): Glenn uses "TF" and `tf` CLI shorthand throughout because guidance generally holds for both. Readers on either platform can follow the same architectural advice. - **Failure is organizational, not just technical** (Opening): The opening scenario—weeks of firefighting over a single forgotten config line—shows that scale problems are about ownership, access, and process as much as code. - **GenAI is not a substitute for understanding** (Early): The author pushes back on "vibe coding" full cloud stacks, arguing that AI-generated infrastructure should rest on a sober, complete body of concepts rather than scraped internet fragments. 【Reading Tips】 - **Skim the front matter fast, slow down at the concepts chapter.** The history of sysadmin→IaC and the publishing conventions are context; idempotency, state, and locking are where the mental model is built. - **Read with your own repo open.** The book is explicitly not a tutorial series—its value lands when you map each pattern or antipattern onto your actual module layout and state boundaries. - **Treat it as a decision aid, not gospel.** Glenn says so himself; when he presents a tradeoff, ask which side your org's constraints put you on. - **Use the companion repo selectively.** Code examples exist at the book's GitHub, but the excerpts suggest the prose carries the argument—don't expect copy-paste solutions. - **Pair it with a foundational Terraform text** if you're newer than "several months on a project team." 【Coverage Limits】 The excerpts are heavily front-loaded (front matter, introduction, and early conceptual chapters), so this guide cannot verify the specific content of the later architecture, policy, and antipattern chapters; those portions are characterized from the blurb and author framing rather than confirmed text.
Excerpt 1
a, Inc. , 141 Stony Circle, Suite 195, Santa Rosa, CA 95401. O'Reilly books may be purchased for educational, business, or sales promotional use. Online edit...
View in text
Excerpt 2
lly implemented by coding agents powered by language models. I can claim very few of the ideas presented in this book as mine alone. Many of them can be foun...
View in text
Excerpt 3
(fax) support@oreilly.com https://oreilly.com/about/contact.html We have a web page for this book with additional information. You can access this page at ht...
View in text
Excerpt 4
t included in a theoretical Terraform: The Good Parts title. Note Nearly all the concepts and many of the techniques in this book are applicable in both Terr...
View in text
Excerpt 5
means TF will not enforce any consistency in how it appears. Nor will TF care about the order in which configuration appears, as long as resources are enclos...
View in text
Excerpt 6
something about how they "thought TF would have caught this." You brush it off because you just don't have time to get into this again. This could be avoided...
View in text
Excerpt 7
point to writing high-quality, highly scalable TF projects. Typically, these variables are introduced to provide abstraction to TF projects, enabling reusabi...
View in text
Excerpt 8
ld generally be phrased from the perspective of an end user. It's up to you what goes into this, but it's a best practice to include a description for every...
View in text
Tags
AI categories
DevOpsCloud NativeSoftware
ISBN: 8341649713
Publish Year: 2026
Language: English
File Format: EPUB
File Size: 8.7 MB