Introduction

I’ve been there. You start small – maybe spin up an EC2 instance here, create an S3 bucket there. The AWS console feels friendly enough. A few CLI commands later, and boom – you’ve got something working.
But then months pass. Your startup grows. Suddenly you’re staring at dozens of resources scattered across multiple regions, created by different team members who all had their own “quick and dirty” approaches. Sound familiar?
This is exactly where terraform import becomes your lifesaver. I’m not talking about some magical tool that fixes everything overnight. Instead, it’s your bridge between the chaos you’ve inherited and the organized Infrastructure as Code world you desperately want to reach.
The best part? You don’t have to nuke everything and start fresh. I learned this the hard way after spending an entire weekend trying to recreate a production database cluster because I thought that was the “proper” way to do it.
Let me walk you through everything I wish someone had told me about terraform import when I was pulling my hair out trying to tame our infrastructure mess.