S3 Object Lock for Terraform State is a Good Idea

If you’re an infrastructure engineer like I am, and if you use Terraform like I do, then your Terraform state files are some of the most important files you manage. If those files somehow disappeared, Terraform wouldn’t be able to know which resources it should manage, any subsequent terraform apply that you might run would probably fail (in the best case) and would maybe be actively destructive to your business (in the worst case). So you should be really careful to make sure your state files don’t disappear. ...

May 9, 2026 · 4 min