Terraform-formatter
Gratis online Terraform HCL-code formatteren en opmaken, geen installatie nodig
What is Terraform?
Terraform is an infrastructure-as-code tool that lets you define and provision infrastructure using a declarative configuration language called HCL (HashiCorp Configuration Language). It supports cloud providers like AWS, Azure, GCP, and many others.
How to Use This Terraform Formatter
Paste your .tf file content in the editor. The tool validates HCL syntax and applies consistent formatting including proper indentation, alignment, and spacing. It checks for common errors and highlights any issues.
▶Should I use this instead of terraform fmt?
No. Use terraform fmt command for production. This tool is for quick formatting checks when Terraform CLI is not available.
▶What HCL version is supported?
This tool supports HCL2 syntax used in Terraform 0.12+. Older HCL syntax may not be fully supported.
▶Does this validate resource syntax?
The formatter checks basic HCL syntax but does not validate that resource names, attributes, or values are correct for your provider. Use terraform validate for that.
Als deze tool je hielp, trakteer de auteur op koffie.
Koffie aanbieden