terraform-fmt

Format configuration according to Terraform language style conventions.

TLDR

Format the configuration in the current directory

>_ terraform fmt
copy

Format the configuration in the current directory and subdirectories

>_ terraform fmt -recursive
copy

Display diffs of formatting changes

>_ terraform fmt -diff
copy

Do not list files that were formatted to stdout

>_ terraform fmt -list=false
copy

Copied to clipboard
free 100$ digital ocean credit