terraform fmt

Format configuration according to Terraform language style conventions. More information: https://developer.hashicorp.com/terraform/cli/commands/fmt.

terraform fmt

terraform fmt -recursive

terraform fmt -diff

terraform fmt -list=false