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” } And it worked. So you left it alone. Then one day, someone tries to use a newer module… and Terraform throws a special error: Error: unsupported argument […]

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 […]

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 […]