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...
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...