Managing infrastructure with Terraform can be a breeze when everything goes according to plan. However, we all know that the dreaded “something” can and will go wrong, especially when working with complex infrastructures. In these cases, it’s essential to have a plan in place for managing Terraform state in a break glass scenario. This is particularly important when your Terraform state is managed by Terraform Cloud or Enterprise.
In this blog post, we will discuss how to manage Terraform state when something goes wrong during a Kubernetes cluster deployment using Terraform and a Helm chart.