Skip to content

choudoufu and the Terraform state file

Same HCL, same providers, same plan. Ownership moves onto the resource.

A state file does three jobs. It says which live resource an address refers to, holds values the cloud cannot, and records that an effect happened. choudoufu takes them apart, and the state file becomes a cache you may lose.

Everything else is stock OpenTofu.

Who can touch what

The permission unitone resourceintentius.ioone state filedeveloper.hashicorp.com
Narrowing accesswrite an IAM policy on the tagintentius.iosplit the statedeveloper.hashicorp.com

When something breaks

A crash, a killed job, a lost file.

An apply killed after a createthe next plan finds the resource by its tagintentius.io✗ an orphan the re-run doesn't know aboutintentius.io
The lock a killed apply leavesnone to releaseintentius.ioon S3, GCS or azurerm, held until force-unlockdeveloper.hashicorp.com
Losing the state fileit was a cache; the next plan rebuilds itintentius.io✗ re-import every resourcedeveloper.hashicorp.com

Two changes at once

What one apply holdsno lock; each resource is its own recordintentius.iothe whole state filedeveloper.hashicorp.com
Applies on different resourcesboth landintentius.iothe second waits for the lockdeveloper.hashicorp.com
A saved plan another apply made stalerefused, naming the resource that movedintentius.iothe whole plan refused as staledeveloper.hashicorp.com

Where it runs

PlatformsAWS, Kubernetes, GCP and Azureintentius.io✓ every providerdeveloper.hashicorp.com
A backend block or a non-default workspacerefused; choudoufu live-check reports it before you startintentius.io✓ supporteddeveloper.hashicorp.com

Sources read 2026-10-25. Terraform is a trademark of HashiCorp, an IBM Company. OpenTofu is a trademark of The Linux Foundation.

Intentius builds behold, chant, choudoufu, plunge, plywood and terragucci. Everything is open source at github.com/intentius. Also from Intentius are blacklight, spicypath and the wardens GitHubGitLabForgejo.

The tools are free. For help with them, get in touch.

Intentius