Member-only story

Terraformer — Generate Terraform Files from AWS infrastructure

Alex
3 min readApr 8, 2025

--

Infrastructure to code, yes it’s not a typo.

A Terraformer explained by the AI.

I was asked to do an inventory of all the cloud assets to have better visibility, reduce cloud expenses (if possible) and to maintain a healthy terraform state avoiding duplicated or not optimized resources.

Someone suggest to use CloudQuery for the same purpose, ….this can be a following experiment and article.

“If the only tool you have is a hammer, everything around you looks like a nail” is a phrase by Abraham Maslow that refers to the temptation to use the same tool to solve all types of problems.

Terraformer was created by Waze SRE team.

Terrafomer is a CLI tool that generates tf/json and tfstate files based on existing infrastructure (reverse Terraform).

Installation

Well of course this depends on your OS, so take a look of the official repo.

On MacOS is just a single brew command.

brew install terraformer

--

--

Alex
Alex

Written by Alex

DevOps Lead @evinova, former Dynatrace Solutions Engineer. Cheerleader in Chief for KMMX, Technical Writer & International Speaker, Dad & 2 cats.

No responses yet