Interview Prep/Terraform/State Internals

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.

All Terraform questions Roadmap: Terraform in production

More on State Internals