DevOps

Upgrading the Terraform AWS Provider: Painful, But Worth It

Introduction If you're using Terraform for IAAC with AWS, you might have probably declared the provider like this in your code: provider "aws" {  region = "us-west-2" } [caption id="attachment_73692" align="aligncenter" width="625"] terraform + aws[/caption] And it worked. So you left it alone. Then one day, someone tries to use...

by Karandeep Singh
Tag: HashiCorp
20-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: HashiCorp
29-May-2025

DevOps

Terraform 1.5 Import Block: Eliminate Manual Imports and Streamline IaC

Introduction We know that sometimes the cloud infrastructure is already set up before we start using Terraform. Traditionally, if we wanted to import these resources into Terraform and control them, we had to run some manual import commands. It was a pain and made it tricky to keep things smooth when working in a collaborative...

by Karandeep Singh
Tag: HashiCorp
26-May-2025