Security built inOpen source · Self-hosted · v0.2.5

Terraform, Terragrunt, and OpenTofu, from your laptop to your pull requests.

The teriac CLI puts every project on the right version, on your laptop and in CI. teriac server plans every pull request and applies only what the right people approved. Security is built in, from the first download to the last apply.

npm install -g @marcdomain/teriac

The server runs on your infrastructure, with your credentials. MIT licensed.

~/projects/infra
$ npm install -g @marcdomain/teriac
$ teriac install latest
Installed terraform 1.17.2 successfully!
$ teriac install latest -p tofu
Installed opentofu 1.13.9 successfully!
$ teriac use 1.17.2
Now using terraform 1.17.2
$ teriac pin # writes .terraform-version
$ teriac ls
Installed terraform versions
  1.17.2 🚀
  1.16.7
$ teriac doctor
All checks passed. teriac is healthy.
Works with
  • Terraform
  • Terragrunt
  • OpenTofu
  • GitHub
  • GitHub Enterprise
  • Docker
  • Kubernetes
  • macOS
  • Linux
  • Windows

The life of a change

Follow one change from laptop to production

The CLI and the server resolve versions the same way, so what you plan locally is what gets planned in the pull request. Click a stop, or let it play.

~ ❯ cd infra/live/prod/db
Now using terraform 1.17.2
~/infra/live/prod/db ❯ teriac plan
aws_db_instance.main must be replaced
Plan: 1 to add, 0 to change, 1 to destroy.
~/infra/live/prod/db ❯ git push -u origin bigger-db

cd into a project and teriac switches to the Terraform, OpenTofu or Terragrunt version it pins. Plan locally before you push.

Guardrail playground

Try to break production. teriac won't let you.

Nine scenarios, each a real teriac feature. Flip the settings, play the people, and watch the pull request react, with the repos.yaml that does it. No install, no sign-up.

alice wants to replace the production database. Pick who comments, the approvals, and which rules are on.

Who comments
SRE approvals
Rules
repos.yaml
repos:
  - id: github.com/acme/infra
    two_person_rule: true
    risk:
      extra_approval:
        critical: { from: team:sre, count: 2 }
Criticallive/prod/db +1 −1 · replaces aws_db_instance.main

alice

teriac apply -p live/prod/db
Apply refused
  • This plan replaces a resource, which needs apply_destroy (maintain by default). Someone with maintain access applies.
  • Two-person rule: the PR author can't apply. Someone else applies.
  • Critical plan: needs 2 approvals from team:sre, has 0. Get the approvals.

Simplified models of teriac's checks, running in your browser. Nothing is sent anywhere.

Everything else

Small details that add up

See it run

The real thing, in a minute each

Helm and Docker install, a PR comment with its risk, live output and the dashboard

Start

Pick where to begin

Use them together, or one at a time.

For you · CLI 0.2.5

teriac

Install and switch versions, plan and apply, on macOS, Linux and Windows. No sudo.

npm install -g @marcdomain/teriac

For your team · Server 0.2.5

teriac server

Plans on every push, applies through the right people. Self-hosted, one container, no database server.

helm install teriac \
  oci://ghcr.io/marcdomain/charts/teriac-server \
  --version 0.2.5 -n teriac -f values.yaml