Interview Prep/Terraform/State and Backends in Production

How do you move from DynamoDB locking to S3 native locking in a live fleet?

IntermediateProductionState and Backends in Production
Answer
  1. Upgrade every CI runner and laptop to Terraform 1.10 or newer (1.11+ preferred, where it is stable).
  2. Add use_lockfile = true while keeping dynamodb_table, so both mechanisms lock during the transition.
  3. Run terraform init -reconfigure per stack and confirm a plan acquires the lock.
  4. Grant DeleteObject on the .tflock key.
  5. Remove dynamodb_table and later the table itself.
All Terraform questions Roadmap: Terraform in production

More on State and Backends in Production