Terraform State Locking, Stuck Locks, and Force Unlock

Posted on Sat 21 March 2026 in Terraform • Tagged with Terraform, Infrastructure as a Code, DevOps

If you've worked with Terraform in a team, you've almost certainly run into this error at some point:

Error: Error acquiring the state lock

Lock Info:
  ID:        a1b2c3d4-e5f6-7890-abcd-ef1234567890
  Path:      s3://my-terraform-state/prod/terraform.tfstate
  Operation: OperationTypeApply
  Who:       sanyam@sanyam-macbook
  Version:   1.7.0 …

Continue reading

Infrastructure as Code with Terraform

Posted on Sun 11 December 2022 in Terraform • Tagged with Terraform, Infrastructure as a Code

Infrastructure as Code (IaC) is an approach to managing IT infrastructure in which infrastructure resources are managed as code rather than through manual processes. Terraform is a popular open-source tool for implementing IaC. In this article, we'll explore how to use Terraform to manage infrastructure as code and how it …


Continue reading

Terraform and AWS Lambda

Posted on Tue 25 October 2022 in Terraform • Tagged with Terraform, Infrastructure as a Code

AWS Lambda is a serverless computing service that allows you to run your code without provisioning or managing servers. Terraform is a popular tool for infrastructure as code, which allows you to manage your infrastructure as code rather than using manual processes. In this article, we'll explore how to use …


Continue reading