Terraform Format - Format Infrastructure Code | Online Free DevTools by Hexmos
Format Terraform configurations with Terraform Fmt. Standardize infrastructure code and improve readability with this command-line tool. Free online tool, no registration required.
terraform fmt
Format configuration according to Terraform language style conventions. More information: https://developer.hashicorp.com/terraform/cli/commands/fmt.
- Format the configuration in the current directory:
terraform fmt
- Format the configuration in the current directory and subdirectories:
terraform fmt -recursive
- Display diffs of formatting changes:
terraform fmt -diff
- Do not list files that were formatted to
stdout:
terraform fmt -list=false