terraform-helper is a Go-based command-line tool built with Cobra to streamline common Terraform workflows.
It's the second project in a three-part series focused on infrastructure automation with Terraform, Go, and Azure SDKs.
This phase established the core command framework and full Terraform lifecycle control with logging for each run to simplify troubleshooting and auditing.
Commands:
terraform-helper plan: Runsterraform planto preview changes.terraform-helper apply: Runsterraform apply -auto-approveto deploy infrastructure.terraform-helper destroy: Runsterraform destroy -auto-approveto remove infrastructure.
Each command streams Terraform output to the console and writes a timestamped log file under /logs.
- Integrate the Azure Go SDK to query or validate deployed resources.
- Add environment validation before Terraform runs.
- Improve log formatting with JSON output and error levels.
This tool is part of a three-project sequence:
- Project 1 - Terraform + Azure Lab: foundational IaC setup (RG, VNet, Subnet).
- Project 2 - Terraform Helper (this): Go CLI automation layer for Terraform.
- Project 3 - Azure API Utility: direct Azure SDK and API interaction for telemetry and validation.
Together, they demonstrate full-stack understanding of infrastructure creation, automation, and platform integration.
MIT