Process Flow - State and real infrastructure mapping
Terraform Config Files
terraform apply
Terraform State File
Compare State vs Real Infrastructure
No Action
Update State File
Terraform reads config files, applies changes, updates state file, and compares state with real infrastructure to keep them in sync.