Introduction
Terraform keeps track of your infrastructure in a state file. Sometimes you need to download this file to see or edit it, or upload a changed state file back to keep Terraform in sync.
When you want to back up your current infrastructure state locally.
When you need to inspect the exact resources Terraform manages.
When you want to fix a corrupted state by manually editing and uploading it.
When collaborating with a team and you want to share the latest state file.
When migrating state files between different storage backends.