Terraform State is the data Terraform uses to map your configuration files to the real infrastructure it manages. It is usually stored in a terraform.tfstate file, and it records resource IDs, attributes, dependencies, and metadata so Terraform can compare your desired configuration with what already exists before it runs plan or apply. For example, if your code defines an AWS S3 bucket or Kubernetes node group, state helps Terraform know whether to create it, update it, or leave it unchanged. Teams often store state remotely in backends such as Amazon S3, Google Cloud Storage, Azure Storage, or Terraform Cloud so multiple people and CI/CD jobs can work safely with locking and version history. Terraform state can contain sensitive values, so you should restrict access, encrypt it at rest, avoid manual edits, and treat it as critical infrastructure data.
DevOps Glossary
Terraform State
Terraform State is data mapping config to infrastructure, letting Terraform track and change its managed resources.