# adammck/terraform-inventory

Terraform State → Ansible Dynamic Inventory

Repository: https://github.com/adammck/terraform-inventory
Canonical: https://ross.abutalabs.com/products/terraform-inventory
Language: Go
License: MIT
License Family: permissive
Topics: go, ansible, terraform
Last push: 2025-12-20T20:40:09+00:00

## Health v2 (maintenance only)
Score: 49/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 58, release rhythm 8, longevity 100
- inputs: {"age_days": 4366, "days_push": 256, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1840, forks 319 (observed 2026-08-28T04:05:43.017111+00:00)

## What it is
A small Go CLI application that generates a dynamic Ansible inventory from a Terraform state file. It lets you provision infrastructure with Terraform and then target those resources as hosts in Ansible playbooks.

## Use cases
- generate ansible inventory from terraform state
- provision servers with terraform then configure with ansible
- use terraform resource names as ansible host patterns
- group aws instances by tags in ansible inventory
- run ansible playbook against terraform-managed instances

## When to choose
- you use Terraform for provisioning and Ansible for configuration management
- you want hosts and tags from terraform state exposed to ansible without manual inventory files
- you need a simple, stable bridge between the two tools

## When to avoid
- you use a different config management tool than Ansible
- you need actively developed support for the newest terraform providers
- you want a general-purpose terraform state explorer rather than an ansible inventory

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: configuration-management, infrastructure-as-code, developer-tools
- domain: infrastructure-as-code, cloud-computing
- platform: cli, cross-platform, windows
- tags: terraform, ansible, dynamic-inventory, go, provisioning, devops, automation, macos, linux

## Member repositories
- adammck/terraform-inventory (main) score 49

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:43.017111+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:18:03.338355+00:00, confidence not recorded.
  - readme: https://github.com/adammck/terraform-inventory (fetched 2026-08-28T04:05:43.017111+00:00, sha 8e6c373ece9f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
