Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?
C. terraform fmt -check -recursive
The terraform fmt -check -recursive command checks if the files are formatted according to the Terraform language style conventions. The -check option will make the command return a non-zero exit code if any of the files are not properly formatted, and the -recursive option instructs it to go into the sub-directories as well, which is useful when you have a Terraform configuration that references multiple modules.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
seifskl
Highly Voted 1 year, 4 months agoOleg_gol
Most Recent 1 year, 6 months ago