Interview Prep/Terraform/State and Backends in Production

A plan suddenly wants to create everything. What happened?

IntermediateProductionState and Backends in Production
Answer

Terraform is reading empty or the wrong state: the backend key changed, you are in the wrong workspace, init -reconfigure pointed to a new bucket, or state was deleted. Do not apply. Check terraform workspace show, terraform state list and the backend config, then restore the right state.

All Terraform questions Roadmap: Terraform in production

More on State and Backends in Production