Member-only story
Infrastructure to code, yes it’s not a typo.
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.
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.