← Back to Blog

Blog

Thoughts on Terraform state management, infrastructure parallelism, and building better developer tools.

RSS Feed

Terraform Files Explained: Structure and Best Practices

Terraform State Management Infrastructure Best Practices

Learn what Terraform files are, how to structure and format them, and why clean file organization is necessary but not enough at scale.

Read more

Terraform best practices are bullshit

Terraform State Management Infrastructure Platform Engineering

Most Terraform best practices are workarounds for one defect, file-based state behind a global lock. The label launders a constraint into discipline.

Read more

Checkov Terraform: What Checkov Is & What It Catches and Misses

Terraform Checkov Security

Learn what Checkov is, how a Checkov Terraform scan works, how to wire it into GitHub Actions, and why passing a scan doesn't mean staying compliant.

Read more

Terraform Architecture Beyond State File Bottlenecks

Terraform State Management Architecture Infrastructure

Learn how Terraform architecture works, why state files and locks break at scale, and how graph-based state management fixes the root cause.

Read more

Terraform commands cheat sheet: from first init to state management

Terraform Infrastructure as Code State Management

A practical Terraform commands reference covering core workflow, state, workspace, and utility commands, with a focus on what each command does to your state.

Read more

Best Terraform Alternatives: Self-Hosted and Cloud

Terraform OpenTofu State Management Infrastructure

Terraform isn't the only option. Compare the best Terraform alternatives, from OpenTofu to Stategraph, to find the right fit for your infrastructure stack.

Read more

Terraform State Show: What It Shows and What It Doesn't

Terraform Stategraph

Terraform state show inspects one resource in state, fast. Learn syntax, modules, sensitive output, remote state, and where it stops being useful.

Read more

The Ultimate Guide to terraform state rm for Safe State Cleanup

Terraform State Management DevOps Infrastructure Error Troubleshooting

Use terraform state rm to remove resources from Terraform state without deleting infrastructure, with examples, safe workflows, and mistakes to avoid.

Read more

Concurrency vs. Parallelism: What's the Difference?

Terraform Concurrency Performance

Concurrency and parallelism are often confused but mean different things. Learn how they work, when to use each, and why it matters in Terraform.

Read more

What Is Configuration Drift and How Do You Prevent It?

Terraform State Management Beginner Guide

Configuration drift silently breaks your infrastructure. Learn what causes it, how IaC prevents it, and which tools detect and fix it automatically.

Read more

AWS Cost Optimization with Terraform: A Practical Guide

Terraform Cost FinOps AWS

Learn how to reduce AWS costs using Terraform. This guide covers right-sizing, lifecycle rules, tagging, and how to bring cost visibility into your IaC workflow.

Read more

Terraform Cost Estimation: Tools and How It Works

Terraform Cost FinOps Stategraph

Not sure what your Terraform infrastructure actually costs? This guide breaks down the real cost drivers and the best Terraform cost estimation tools available.

Read more

What is ClickOps and how do teams prevent it?

DevOps Infrastructure Terraform Automation

ClickOps slows teams down, introduces drift, and makes infrastructure hard to audit. Learn what ClickOps means in DevOps and how to move beyond it with IaC.

Read more

What Terraform graph shows, and where it hits its limits

Terraform State Management Infrastructure DevOps

Learn how Terraform graph exposes Terraform dependencies, where the command gets hard to use, and how to make the graph easier to act on.

Read more

What Is a Monorepo? Architecture, Benefits, and How to Scale Yours

Monorepos Infrastructure Terraform OpenTofu DevOps

Learn what a monorepo is, how monorepo architecture works, why teams using IaC at scale are adopting it, and how Stategraph makes it manageable.

Read more

What Bazel taught us about Terraform

Stategraph Terraform Build Systems Bazel Architecture

Build systems solved fast-and-correct twenty years ago. A walk through how Bazel's playbook - DAGs, hashing, sandboxes, caches - maps onto Terraform.

Read more

Engineering Log: Stategraph 2.0 and the configurations we used to give up on

Engineering Log Product Updates Stategraph Terraform Modules

Stategraph 2.0 ships broader module coverage, a more robust HCL parser, and a faster core. Here is the engineering work behind the release.

Read more

Cross-state reads, without the whole state: Solving Terraform remote state

Terraform State Management Security Stategraph Velocity

Terraform remote state helps share output values across configurations, but broad state access can expose more data than each module needs.

Read more

How to use the Terraform moved block to refactor safely

Terraform State Management Refactoring Modules

Learn how the Terraform moved block lets you rename resources and reorganize modules safely, without destroying infrastructure or editing state by hand.

Read more

Terraform state is becoming a database: The shift from storage to system

Terraform State Management Distributed Systems Infrastructure Architecture

Terraform state was designed as a file. The next decade of infrastructure tooling treats it as a database, and the substrate is changing.

Read more

How to use Claude Code with Terraform, without hitting a wall

Terraform AI DevOps Stategraph

Use Claude Code as a Terraform agent that writes, validates, and iterates on HCL, and learn where the backend becomes the bottleneck once the loop works.

Read more

Blast Radius in Terraform: What it is and how to reduce it

Terraform State Management CI/CD Infrastructure

Learn what blast radius means in Terraform, why a large one is dangerous, and the practical steps and tools you can use to shrink it before changes go out.

Read more

Terraform concurrency: What it is and how to control it

Terraform State Management State Locking CI/CD

Learn what Terraform concurrency means, how concurrency limits work, and how to safely manage concurrent Terraform runs in your infrastructure.

Read more

Terragrunt run-all: A guide for Terraform teams at scale

Terraform Terragrunt Orchestration State Management

Learn how terragrunt run-all plans, applies, destroys, orders dependencies, and where orchestration starts to hit Terraform state limits.

Read more

Terraliths in Terraform: what they are and why the monolith is the right shape

Terraform Terralith State Management Infrastructure

A terralith keeps Terraform simple, and most of the pain blamed on it is really pain from file-based state. Here is what a terralith is and what actually fixes the symptoms.

Read more

Terraform parallelism: a practical guide to faster applies

CI/CD Scalability Terraform

Learn how Terraform parallelism works, what the default setting does, and how to tune it with the -parallelism flag for faster, safer apply runs.

Read more

Terraform backends explained: Types, config, and limits

Terraform State Management Infrastructure DevOps Backends

Learn what Terraform backends are, how to configure local and remote options, and where the standard approach breaks down at scale.

Read more

Engineering Log: Stategraph 1.0.0 and the month that made it real

Engineering Log Product Updates Stategraph Terraform Testing

Stategraph 1.0.0 shipped with full tfvars support, HCL parser improvements, and a testing overhaul. Here is the engineering work behind the milestone.

Read more

Terraform Map Variables: A Practical Guide

Terraform Infrastructure DevOps

Learn how to use Terraform map variables with real examples, from basic declarations to for_each, lookup(), and map functions in HCL.

Read more

What Is Terraform IaC? A Practical Guide

Terraform Infrastructure State Management

Learn what Terraform IaC is, how it works, the core concepts behind it, why teams adopt it for multi-cloud infrastructure, and how it compares with other IaC tools.

Read more

Terraform's unit of work is too large

Terraform Performance Infrastructure

A real benchmark on an 800 MB Terraform state file: a no-op that took nearly 3 hours versus 97 seconds. The architectural argument behind the result.

Read more

Why Is Terraform So Slow? Root Causes and Fixes

Terraform Performance State Management Infrastructure

Why is Terraform so slow in plan and apply? Learn the real causes of Terraform slowness, the quick fixes that help, and the architectural fix.

Read more

Announcing Stategraph Velocity: Terraform plans in seconds, not minutes

Stategraph Terraform OpenTofu Product Updates

Stategraph Velocity is fast plan and apply for Terraform or OpenTofu, built by replacing the flat state file with a database-backed dependency graph.

Read more

Parallel execution: Faster tests and faster Terraform

Testing Terraform Infrastructure Performance

Parallel execution cuts test suite time and removes Terraform lock waiting. Learn safe patterns and how Stategraph runs independent changes in parallel.

Read more

OpenTofu: The Open Source Infrastructure as Code Tool Your Team Actually Owns

OpenTofu Terraform Open Source Infrastructure

Learn what OpenTofu is, how it compares to Terraform, installation methods, key features like state encryption, and how to migrate your infrastructure code.

Read more

Yes, Terraform has a graph. That's not the point.

Terraform State Management Distributed Systems Architecture

Terraform already walks a DAG during apply. But in-run parallelism isn't the bottleneck. The graph is ephemeral, not infrastructure.

Read more

Terragrunt is dead: Multi-state transactions killed run-all

Terraform Stategraph Velocity State Management Orchestration

Terragrunt exists because Terraform can't handle cross-state dependencies. Multi-state transactions execute them atomically. No run-all needed.

Read more

Engineering Log: Computing dependency cones for Terraform resources

Engineering Log Terraform Stategraph Infrastructure

Built a tool that computes the dependency cone of any Terraform resource and extracts a minimal subset file containing only what you need.

Read more

Terragrunt was a band-aid. Stategraph fixes the wound.

Terraform Terragrunt State Management Infrastructure

Terragrunt solved Terraform's scaling problems by splitting state. Stategraph eliminates them by fixing the primitive itself.

Read more

The Terralith is correct. State fragmentation is the problem.

Terraform Infrastructure State Management Terralith Scalability

State fragmentation creates coordination problems Terraform can't see. The real issue isn't monolithic architecture—it's file-based storage.

Read more

The infrastructure stack is getting faster. Terraform is not.

Platform Engineering Terraform Infrastructure Velocity Engineering Leadership Developer Experience

Every layer of the stack is accelerating except infrastructure. Engineering leaders demand velocity. Terraform has the ecosystem but not the speed.

Read more

Don't force unlock Terraform state. Do this instead.

Terraform State Locking State Management Error Troubleshooting DevOps

Forcing a Terraform state unlock bypasses safety mechanisms that prevent concurrent modifications. Understand what's happening and what to do instead.

Read more

Fix 'Error Acquiring the State Lock' in Terraform

Terraform State Locking Error Troubleshooting Distributed Systems DevOps

Terraform's state lock error is a design choice that trades velocity for correctness, revealing fundamental coordination limitations.

Read more

Terraform state locking explained (and why it hurts at scale)

Terraform State Locking Distributed Systems Scalability DevOps

Terraform state locking uses filesystem semantics for coordination. The result: global mutexes, deployment queues, and superlinear contention.

Read more

Store Terraform state in S3 (with DynamoDB locking)

Terraform AWS S3 Backend State Management DevOps

Complete guide to configuring Terraform's S3 backend with DynamoDB state locking, including setup, encryption, versioning, and IAM policies.

Read more

What is a Terraform state file and where is it stored?

Terraform State Management Beginner Guide DevOps

Learn what Terraform state files are, where they're stored by default, and when to migrate from local to remote backends for team collaboration.

Read more

Terraform state: A practical guide to backends, locks and safe CI/CD

Terraform State Management DevOps CI/CD

Comprehensive guide to Terraform state management: remote backends, state locking, security best practices, and CI/CD integration for enterprise teams.

Read more

Inside Terraform's DAG: How dependency ordering really works

Terraform DAG Infrastructure Technical Deep Dive

Deep dive into Terraform's dependency graph: how the DAG is constructed, how dependencies work, and how Terraform walks the graph with parallelism.

Read more

Terraliths are the natural shape of infrastructure

Terraform Terralith Infrastructure

The Terraform Terralith isn't an anti-pattern. It's the natural shape of infrastructure. The real anti-pattern is accepting broken tooling.

Read more

Why Stategraph: Terraform state as distributed systems

Terraform Infrastructure Distributed Systems

Terraform state is a distributed systems problem masquerading as file storage. Stategraph models it as a graph with ACID transactions and subgraph isolation.

Read more