DevOps

Mastering Terraform State: Real Incidents, Lessons, and Best Practices

Introduction: What is Terraform State? Terraform doesn’t just apply your infrastructure code and forget about it. It keeps track of what’s been created — every EC2 instance, every S3 bucket, every RDS database, every security group, and many more. That data is stored in a file called terraform.tfstate. This state file is how...

by Karandeep Singh
Tag: TerraformTips
08-Aug-2025

DevOps

Modern Terraform Practices: Removing Resources Safely from State

Introduction and Usecase There are times when we want Terraform to stop managing a resource, but don’t want to delete it from the infrastructure. In this brief blog, I'm going to discuss removing resources from Terraform configuration files while keeping them in real infrastructure. But why would you want to do this in the first...

by Karandeep Singh
Tag: TerraformTips
29-May-2025