Infrastructure State File
Terraform state is an operational record, stored locally or through a backend. It can contain sensitive values, so control access and test recovery of resource bindings.
Terraform state is an operational record, stored locally or through a backend. It can contain sensitive values, so control access and test recovery of resource bindings.
Your code says what should exist. The state file says what the tool believes exists. The cloud knows what actually exists. Three answers, one system.
Infrastructure code is only half of the system; the tool also keeps a record of what it created. This guide explains state, plans, locks, drift, secrets, tests, and rollback, with Terraform examples and the output of local runs.