AWS Builder Center
I Stopped Clicking Around the Console: What Terraform Taught Me About Reproducible Infrastructure

I Stopped Clicking Around the Console: What Terraform Taught Me About Reproducible Infrastructure

How switching from console clicking to Terraform made my AWS infrastructure reviewable, reproducible, and rebuildable — including the remote-state lesson I learned the hard way.

yub 😎
For my first year on AWS, my infrastructure lived in two places: the console, and my memory. I clicked through wizards to create VPCs, security groups, and buckets, and I told myself I would remember what I had done. I never did.
The bill came due the day I needed a second environment. A staging copy of a small app should have taken an afternoon. It took three days, because I was reverse-engineering my own setup: which ports did I open on that security group, which bucket policy did I attach, what was that IAM role called again? I had built something that only existed in one place, and rebuilding it meant re-discovering it.
That was when I started over with Terraform, and it changed how I think about infrastructure.

Code is the documentation I actually read

The first surprise was not automation — it was clarity. A Terraform file that says  aws_s3_bucket  with versioning enabled and public access blocked is a description I can read in ten seconds. My old setup needed me to open four console pages and remember why each setting was there.
Writing infrastructure as code forced me to name things deliberately and to decide, in writing, what each resource was for. When a teammate asked why a bucket had a lifecycle rule, the answer was in the file, with a comment, instead of in my head. The code became the documentation, and unlike the notes I kept meaning to write, it stayed up to date — because if it drifted from reality, the next  terraform plan  would show it.

Plan before apply changed how I make changes

The second surprise was the workflow.  terraform plan  shows me exactly what will change before anything changes: three resources to add, one to modify, none to destroy. I review that output the way I review a pull request, because that is effectively what it is.
This caught real mistakes before they reached production. Once, a small edit to a security group rule would have opened port 22 to the world — a copy-paste slip I would never have noticed in the console, where the change applies the moment you click save. The plan output showed it in plain text, and I fixed it before applying. That one save paid for the whole learning curve.
Apply itself is almost boring after that, and boring is the point. The same configuration applied twice produces the same infrastructure twice. My staging environment stopped being a hand-built approximation of production and became the same code with different variables.

State is the part nobody warns you about

The honest part of this story is that Terraform is not magic, and its rough edge is state. Terraform keeps a state file that maps your code to the real resources it created. Lose that file, or let two people apply from different copies of it, and you get the kind of confusion that makes you miss the console.
I learned this the practical way: store state remotely in an S3 bucket, with a DynamoDB table for locking, from day one. Not later, not when the project gets serious — from the first  terraform init . Remote state with locking means no one overwrites anyone else's apply, and the state survives a laptop dying. It takes twenty minutes to set up and saves hours of untangling later.
The other lesson is smaller but just as real: never edit infrastructure by hand once Terraform manages it. The moment I tweaked a security group in the console "just this once," the next plan showed a diff I did not expect, and I spent an evening figuring out whether the code or the console was right. The code is the source of truth, or nothing is.

My takeaway

Terraform did not make me faster at creating infrastructure. It made me slower in the good way: I think before I change things, I review before I apply, and I can rebuild an environment without relying on my memory.
If your setup only exists in the console and in your head, it does not really exist. It is a story you are telling yourself, and stories get forgotten.
What is the one piece of your infrastructure that only you know how to rebuild — and what would happen if you had to do it tomorrow?
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article