DevOps Dictionary

A straightforward reference for DevOps terms and concepts.

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

Terraform State

Infrastructure as Code

Terraform State is the record Terraform keeps of the real infrastructure it manages. It is stored in a file, usually named terraform.tfstate, that maps each resource in your code to its real ID and attributes. On every plan or apply, Terraform compares your code with the state to decide what to create, change or delete. Teams keep it in shared remote storage with locking (for example, an S3 bucket).

Patent-style sketch of Terraform State: a Terraform machine with a balance compares a configuration sheet with a state file ledger secured by a lock, then acts on the real infrastructure.

See also Configuration Drift.