terraform-inventory
« Back to VersTracker
Description:
Go app which generates a dynamic Ansible inventory from a Terraform state file
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Devops
Tags: terraform ansible inventory devops automation
Install: brew install terraform-inventory
About:
TerraformInventory is a command-line tool that parses Terraform state files to automatically generate dynamic Ansible inventory. It eliminates the need for manual inventory management by syncing host data directly from Terraform's state, enabling seamless infrastructure provisioning and configuration workflows.
Key Features:
  • Parses Terraform state files to generate Ansible inventories
  • Supports both remote and local state backends
  • Automatic grouping of resources by attributes
  • Zero-configuration dynamic inventory script
Use Cases:
  • Automated provisioning workflows combining Terraform and Ansible
  • Dynamic inventory generation for ephemeral cloud infrastructure
  • Post-deployment configuration management of provisioned resources
Alternatives:
  • terraform.py – Similar functionality but terraform.py is maintained by the community and supports more complex grouping options
  • aws_ec2 inventory plugin – AWS-specific solution that connects directly to EC2 API rather than Terraform state
Version History
Detected Version Rev Change Commit
Sep 12, 2025 4:18am 0 VERSION_BUMP 5d8c0944
Sep 12, 2024 10:49pm 0 VERSION_BUMP 401d8998