#State

2 posts

Terraform Basics #9 Remote State and Collaboration: S3 Backend, Native Locking, and Protecting Sensitive Data
6 min read

Terraform Basics #9 Remote State and Collaboration: S3 Backend, Native Locking, and Protecting Sensitive Data

Walking through the three problems local state hits in team collaboration, then the S3 backend configuration and the migration flow init guides you through. We cover how use_lockfile native locking prevents concurrent runs and why the DynamoDB approach became legacy, plus versioning, encryption, and access control for the state bucket — wrapping up the basics series.

Terraform Basics #5 State Explained: The tfstate File Structure and How plan Computes Changes
5 min read

Terraform Basics #5 State Explained: The tfstate File Structure and How plan Computes Changes

Opening the terraform.tfstate file to examine its structure, and explaining how plan computes changes by comparing three things: code, state, and the real infrastructure. We also cover the problem of sensitive values stored in plaintext and the rule against committing state, manipulation commands like state list, show, mv, and rm, and what happens when you lose your state.