Formatting the Code

Learn how to format the Terraform configuration files using the terraform fmt command.

The terraform fmt command

The terraform fmt command is used to rewrite Terraform configuration files to match the canonical format and style outlined by the Terraform language style conventions ...

...