Start here Live appliesMenu

Start here

Live applies

Keep the viewer open and pipe any Terraform command that supports -json into infraglass record:

terraform apply -json tfplan | infraglass record

record prints the same messages Terraform would, so your terminal looks as usual. It also saves the stream to .infraglass/runs/<time>.jsonl, which infraglass serve watches by default.

While it runs:

  • each resource goes pending → applying → done, or failed, right on the graph;
  • resources that don't exist in the state yet appear as dashed placeholders;
  • the footer shows progress, elapsed time and the totals Terraform reports, and opens the run.

When the run finishes, the viewer reloads the state on its own.

The Runs view

The Runs view: recorded applies on the left and the log viewer with search and filters

Runs (key l) lists every recorded run, newest first, with its operation, result, length and totals. Pick one to see:

  • Timeline: one bar per resource, like a CI pipeline's stage view. Click a bar to open the resource.
  • Logs: every message, with search, and filters by level, event type and resource. Each line links to its resource. Copy and Download take the lines shown, already redacted.
  • Plan vs apply: for an apply of a plan you've loaded, each planned change and what happened to it: applied, failed, incomplete (started but never finished in a run that ended, such as a replace whose destroy ran and whose create didn't), in progress, not attempted, or unplanned (changed by the run but not in the plan).

Free text from Terraform (messages, diagnostics, provisioner output) goes through a secret scrubber before the viewer sees it. It removes private keys, credentials in URLs, cloud and platform tokens, JWTs, Authorization headers and password=…-style pairs. It's a safety net, not a guarantee, so treat runs as sensitive.

Other commands

record works with any command that streams JSON:

terraform plan -json | infraglass record          # shown as a planned run
terraform destroy -json | infraglass record
terraform apply -json -auto-approve | infraglass record

In CI

record exits with status 1 when Terraform reports an error, so the step fails even if your shell doesn't use set -o pipefail. It also fails when its input isn't a JSON stream, which usually means -json was left out.

Save to a known file and keep it as an artifact, or turn it into a report with infraglass export --run:

terraform apply -json tfplan | infraglass record runs/apply.jsonl
infraglass export --dir . --run runs/apply.jsonl -o apply-report.html

Where runs are kept

Setting Default
Where record writes .infraglass/runs/ in the current directory (--dir to change, or name a file)
What serve watches <dir>/.infraglass/runs (--follow for another file or directory, --no-live for none)
How many it keeps The 50 newest files
File permissions 0600 in a 0700 directory, because streams can include provisioner output

Add .infraglass/ to your .gitignore.

Compatibility

The stream is Terraform's machine-readable UI. Infraglass ignores fields it doesn't know and refuses a major version it doesn't support (it reads 1.x), as HashiCorp recommends.

Improve this page on GitHub · Report a problem