Skip to content

terraform-show-outputs.sh

Shows Terraform outputs for common infrastructure stacks from one command.

Purpose

Provides a single entry point for terraform output -json across the main infrastructure directories so you do not need to navigate into each folder.

Supported Targets

  • bootstrapinfra/bootstrap
  • identityinfra/identity
  • devinfra/environments/dev
  • prodinfra/environments/prod

Usage

Interactive selection:

./scripts/terraform-show-outputs.sh

Direct selection by arguments:

./scripts/terraform-show-outputs.sh bootstrap
./scripts/terraform-show-outputs.sh identity dev

Output Format

  • Uses standard Terraform output format (human-readable).
  • Prints a section header per selected target.

Notes

  • If a stack has no local state yet, the script prints a warning and a suggested apply command.
  • Unknown target names exit with an error.