terracognita
« Back to VersTracker
Description:
Reads from existing Cloud Providers and generates Terraform code
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Devops
Tags: terraform devops infrastructure-as-code aws azure cloud
Install: brew install terracognita
About:
Terracognita is a command-line tool that imports existing infrastructure from cloud providers like AWS and Azure into Terraform configuration files. It effectively reverse-engineers your cloud environment, generating HCL code to help you adopt infrastructure-as-code without starting from scratch. This significantly reduces the manual effort and potential for errors when transitioning existing setups to Terraform.
Key Features:
  • Supports AWS and Azure providers
  • Generates HCL (HashiCorp Configuration Language) for Terraform
  • Filters resources by tags or types to control output
  • Outputs to stdout or directly to a .tf file
Use Cases:
  • Converting an existing manually-managed cloud infrastructure to Terraform
  • Generating a baseline Terraform configuration for disaster recovery
  • Auditing cloud resources by generating a readable infrastructure map
Alternatives:
  • former2 – Former2 is a web-based GUI tool, whereas Terracognita is a CLI tool focused on automation and integration into developer workflows.
  • terraformer – Terracognita is often cited as a more lightweight alternative with a focus on generating code for specific providers.
Version History
Detected Version Rev Change Commit
Sep 12, 2025 4:31am 0 VERSION_BUMP c8102076
Sep 12, 2024 11:13pm 0 VERSION_BUMP 468a15be