# flux-iac/tofu-controller

A GitOps OpenTofu and Terraform controller for Flux

Repository: https://github.com/flux-iac/tofu-controller
Canonical: https://ross.abutalabs.com/products/tofu-controller
Homepage: https://flux-iac.github.io/tofu-controller/
Language: Go
License: Apache-2.0
License Family: permissive
Topics: kubernetes, terraform, gitops, flux, fluxcd
Last push: 2026-08-24T05:13:37+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 84, longevity 100
- inputs: {"age_days": 1716, "days_push": 9, "days_rel": 27, "gap_med": 33, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1686, forks 196 (observed 2026-08-28T04:05:22.112511+00:00)

## What it is
Tofu Controller is a Kubernetes controller that reconciles OpenTofu and Terraform resources through Flux in a GitOps workflow. It supports full automation, hybrid, state enforcement, and drift detection models for managing infrastructure as code from Git.

## Use cases
- gitops terraform resources with flux
- run opentofu plan and apply from kubernetes
- detect terraform state drift automatically
- manage eks cluster provisioning via git
- enforce existing tfstate files declaratively
- multi-tenant terraform automation on kubernetes

## When to choose
- you already use Flux and want to manage Terraform/OpenTofu declaratively
- you need drift detection or state enforcement for existing tfstate files
- you want multi-tenant IaC automation inside Kubernetes

## When to avoid
- you don't use Kubernetes or Flux
- you prefer running Terraform directly in CI pipelines
- you need a standalone Terraform execution tool

## Facets
- artifact type: service
- maturity: active
- function: infrastructure-as-code, deployment, configuration-management, workflow-automation, developer-tools
- domain: infrastructure-as-code, cloud-computing, self-hosted
- platform: go, cloud, self-hosted
- tags: terraform, opentofu, gitops, flux, kubernetes-operator, iac, drift-detection, cnf, devops, containers, automation, kubernetes, docker

## Member repositories
- flux-iac/tofu-controller (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:22.112511+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:38:57.131663+00:00, confidence not recorded.
  - readme: https://github.com/flux-iac/tofu-controller (fetched 2026-08-28T04:05:22.112511+00:00, sha fed97fc6ef9f)
  - homepage: https://flux-iac.github.io/tofu-controller/ (fetched 2026-08-29T11:13:44.358767+00:00, sha 2dbd3745de52)
- Data as of 2026-08-30T08:39:29.467469+00:00.
