Start here Getting startedMenu

Start here

Getting started

Infraglass shows a Terraform plan or state as one picture in your browser, with the changes that deserve a closer look listed first. It reads only what Terraform already writes (terraform show -json and the -json stream of an apply), changes nothing, and makes no cloud API calls of its own. It's a single binary.

Install

Pick one of the three. Each gives you the same infraglass command.

Go

go install github.com/ityashag/infraglass/cmd/infraglass@latest   # Go 1.27 or later

The binary goes to $(go env GOPATH)/bin. Make sure that directory is on your PATH.

A release binary (macOS and Linux)

Download the archive for your platform and its checksums, check the archive, and unpack it:

VERSION=0.2.3
OS=$(uname -s | tr '[:upper:]' '[:lower:]')                  # darwin or linux
ARCH=$(uname -m | sed 's/x86_64/amd64/; s/aarch64/arm64/')   # amd64 or arm64
FILE="infraglass_${VERSION}_${OS}_${ARCH}.tar.gz"
BASE="https://github.com/ityashag/infraglass/releases/download/v${VERSION}"

curl -fsSLO "$BASE/$FILE"
curl -fsSLO "$BASE/checksums.txt"
grep " $FILE\$" checksums.txt | shasum -a 256 -c -          # prints the file name and OK
tar xzf "$FILE" infraglass
sudo install -m 0755 infraglass /usr/local/bin/infraglass

To also check that the archive was built by this repository's release workflow, verify its signed build provenance with the GitHub CLI:

gh attestation verify "$FILE" -R ityashag/infraglass

On Windows, download infraglass_0.2.3_windows_amd64.zip (or _arm64.zip) and checksums.txt from the latest release, compare the archive's Get-FileHash with its line in checksums.txt, and put infraglass.exe on your PATH.

Docker

docker run --rm -p 127.0.0.1:7788:7788 ghcr.io/ityashag/infraglass

This starts the demo: open the link it prints. The image doesn't include Terraform, so for your own project you give it saved JSON. See Docker.

Check any install with infraglass version.

Try the demo

infraglass demo

A browser opens on a plan for a sample AWS stack, a pull request with changes worth catching, and then replays its apply. Every ID in it is made up. Press Guide for a one-minute walk-through. Or open the live demo, which runs entirely in your browser.

Review a plan

This is what most people use Infraglass for. In a Terraform directory where terraform init has run:

terraform plan -out=tfplan
infraglass serve --plan-file tfplan

Infraglass runs terraform show -json tfplan, starts a viewer on 127.0.0.1:7788, and opens a link that carries a one-time session token. The sidebar's Review first card lists what deserves a look, most serious first: resources that hold data being replaced or deleted, failed checks, drift, and changes that others depend on. Press Ctrl+C to stop the viewer.

Reviewing plans explains each part.

Look at what's deployed

Leave out the plan to see the current state:

infraglass serve

Add --dir path/to/terraform for another directory, and --terraform tofu for OpenTofu.

If you already have JSON, from CI for example, point at it directly. This needs no Terraform and no credentials:

terraform show -json > state.json
infraglass serve --state state.json

terraform show -json tfplan > plan.json
infraglass serve --plan plan.json

Note

With a remote backend, terraform show reads the state with the backend's usual credentials, just as terraform plan does. Infraglass needs none of its own.

Find your way around

  • Graph lays resources out from foundations on the left to the things that use them on the right. Drag to pan, scroll to zoom, press F to fit, and click a resource for its details.
  • Table lists everything and sorts by any column. It's the default view above 600 resources.
  • Timeline shows a run as one bar per resource. See Live applies.
  • The sidebar shows totals, the plan breakdown, access findings, services and modules. Click any row to filter the graph.
  • The details panel has four tabs: Overview (what it depends on, what uses it, what it can access, and for plans the attribute changes), Attributes (searchable, with sensitive values hidden), Access (policies and findings) and Activity (its part in the current run).

Press ? for keyboard shortcuts.

Next steps

Improve this page on GitHub · Report a problem