Process Flow - Why state should not be edited manually
Terraform State File
Terraform Commands
Read/Write State
Infrastructure Changes
State Reflects Reality
State File Modified
Terraform Detects Mismatch
Errors or Unexpected Behavior
Infrastructure Drift or Failure
Terraform uses a state file to track infrastructure. Manual edits can cause mismatches leading to errors or wrong changes.