Neofetch for Terraform

1 week ago 3

Let your Terraform code flex for you.

Terrafetch is the Neofetch of Terraform—because your infrastructure deserves a little flair. It scans your Terraform repository and displays key statistics like the number of variables, resources, modules, outputs, and more—all in a stylish, terminal-friendly format. Perfect for CLI screenshots, repo intros, or just flexing your infra hygiene.

If you have a functional Go environment, you can install with:

go install github.com/RoseSecurity/terrafetch@latest

To install packages, you can quickly setup the repository automatically:

curl -1sLf \ 'https://dl.cloudsmith.io/public/rosesecurity/terrafetch/setup.deb.sh' \ | sudo -E bash

Once the repository is configured, you can install with:

apt install terrafetch=<VERSION>
git clone [email protected]:RoseSecurity/terrafetch.git cd terrafetch make build

Important

Do you love the tool but it's missing some information you'd like to see? Head on over to this discussion and drop a comment or open a new issue!

❯ terrafetch ╭─────────────────────────────────────────────────────────╮ │ infra │ │@# ----- │ │@@@@@ Files : 1299 │ │@@@@@@@@. Docs : 190 │ │@@@@@@@@@@ + # Resources : 423 │ │@@@@@@@@@@ @@@@ @@@@ Modules : 737 │ │@@@@@@@@@@ @@@@@@@. .@@@@@@@ Variables : 6020 │ │ @@@@@@@@@ @@@@@@@@@@ @@@@@@@@@@ Outputs : 802 │ │ +@@@@@ @@@@@@@@@@ @@@@@@@@@@ Providers : 330 │ │ .@@ @@@@@@@@@@ @@@@@@@@@@ │ │ @@@@@@@@@@ @@@@@@@@@@ │ │ @+ -@@@@@@ @@@@@@= │ │ @@@@@ .@@@ @@@. │ │ @@@@@@@@. │ │ @@@@@@@@@@ │ │ @@@@@@@@@@ │ │ @@@@@@@@@@ │ │ .@@@@@@@@ │ │ @@@@@ │ │ %@ │ │ │ ╰─────────────────────────────────────────────────────────╯

For bug reports & feature requests, please use the issue tracker.

PRs are welcome! We follow the typical "fork-and-pull" Git workflow.

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Commit changes to your own branch
  4. Push your work back up to your fork
  5. Submit a Pull Request so that we can review your changes

Tip

Be sure to merge the latest changes from "upstream" before making a pull request!

Many Thanks to Our Contributors

Read Entire Article