Sitemap

Member-only story

Terraformer — Generate Terraform Files from AWS infrastructure

3 min readApr 8, 2025

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

Press enter or click to view image in full size
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.

Press enter or click to view image in full size
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.

Press enter or click to view image in full size
brew install terraformer

--

--

Alex
Alex

Written by Alex

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