What is the difference between local and remote state?
BeginnerConceptState Internals
Answer
Local state is terraform.tfstate on disk: fine for experiments, bad for teams because it is not shared, locked or backed up. Remote state lives in a backend such as S3, GCS, Azure Blob or HCP Terraform, giving shared access, locking, versioning and encryption at rest.
More on State Internals
What does the state file contain?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?BeginnerWhen do you use `terraform state mv`?Intermediate