Interview Prep/Terraform/State Internals

What are `state pull` and `state push` and why is push dangerous?

AdvancedConceptState Internals
Answer

pull downloads the current state; push uploads a local file as the new state, bypassing checks beyond serial and lineage. A bad push can erase knowledge of real resources. Always back up first (terraform state pull > backup.tfstate), prefer S3 versioning for rollback and use push only for recovery like errored.tfstate.

All Terraform questions Roadmap: Terraform in production

More on State Internals