Terraform
State Commands
Manage Terraform state safely. Learn to inspect, modify, and migrate state for infrastructure management.
16 commands
Pro Tips
Use remote state (S3, GCS) for team collaboration - local state causes conflicts.
Use 'terraform state list' to see all resources, 'terraform state show' for details.
Always backup state before 'terraform state mv' or 'terraform state rm' operations.
Common Mistakes
Corrupted state can orphan resources. Never manually edit .tfstate files.
'terraform state rm' removes from state but doesn't delete actual resources - they become unmanaged.