Skip to content
Latchkey

State File - CI/CD Glossary Definition

A state file is the record an IaC tool keeps of the resources it manages, mapping configuration to real-world objects so it knows what to create, change, or destroy.

A state file is the record an IaC tool keeps of the resources it manages, mapping configuration to real-world objects so it knows what to create, change, or destroy.

Terraform stores this mapping in a state file; losing or corrupting it disconnects your code from the resources it controls.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →