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.
More on State Internals
What does the state file contain?BeginnerWhat is the difference between local and remote state?BeginnerHow do you configure the S3 backend?BeginnerWhat is state locking and why does it matter?IntermediateHow does S3-native locking work and how does it replace DynamoDB?AdvancedHow do you inspect resources in state?Beginner