Using Terraform CLI, how do you check what files need to be reformatted to standard formatting without rewriting the files?
Experience Level: Junior
Tags: Terraform
Answer
Run the following command:
terraform fmt write=false
Related Terraform job interview questions
Using Terraform CLI, how do you remove locally-stored credentials for specified hostname of Terraform Enterprise?
Terraform JuniorUsing Terraform CLI, how do you retrieve authentication token for the given hostname to Terraform Enterprise?
Terraform JuniorWhat does command 'terraform fmt -check' do?
Terraform JuniorUsing Terraform CLI, how do you reformat all files to meet the standard style including the files in subfolders?
Terraform JuniorUsing Terraform CLI, how do you reformat your Terraform configuration files in the standard style?
Terraform Junior