We’re excited to introduce tofu-template-tester, a lightweight Go CLI tool designed to make working with Terraform and OpenTofu template files simpler and more flexible. Version 0.1.0 marks the first public release of this project, now available for download.

What’s New

As the inaugural release, v0.1.0 introduces all core features of tofu-template-tester:

  • Template Variable Listing – Use -list-params to discover all ${VARIABLE_NAME} placeholders in your templates before rendering
  • Properties File Support – Load variable assignments from key=value files using -properties, with support for comments and blank lines
  • Interactive Mode – Missing variables? Enable -interactive to be prompted for values at runtime
  • Flexible I/O – Read from files or stdin, write to files or stdout with -in and -out options
  • Terraform-Compatible Syntax – Native support for ${NAME} placeholder format used by Terraform and OpenTofu

Why It Matters

Template rendering is a routine part of infrastructure as code workflows. tofu-template-tester fills a gap by providing a dedicated, purpose-built tool that does one thing well: substituting variables in template files with user-supplied values.

The tool excels in automation scenarios where you need to:

  • Pre-render templates before passing them to Terraform/OpenTofu
  • Validate which variables a template requires before deployment
  • Integrate template processing into CI/CD pipelines via stdin/stdout piping

Cross-platform binaries are available for Linux, macOS, and Windows across multiple architectures (amd64, arm64, 386), so you can start using it immediately without building from source. Each release includes MD5 and SHA256 checksums for verification.

Getting Started

Download the pre-built binary for your platform from the v0.1.0 release page.

Basic usage with a properties file:

tofu-template-tester -in template.txt -properties vars.properties -out output.txt

Interactive mode for missing variables:

tofu-template-tester -in template.txt -interactive

List all template variables:

tofu-template-tester -list-params < template.txt

If you prefer building from source, ensure you have Go 1.24.3 or later:

git clone https://github.com/UnitVectorY-Labs/tofu-template-tester.git
cd tofu-template-tester
go build -o tofu-template-tester ./...

This post was AI-generated using the unsloth/Qwen3.5-122B-A10B-GGUF:Q4_K_M model. Source: UnitVectorY-Labs/tofu-template-tester, Release v0.1.0 (May 20, 2025). By release-storyteller.