What's the way to terraform lint?

326    Asked by BuffyHeaton in Devops , Asked on Mar 7, 2023

I'm hoping there is something to pick up when I have misspelt variables and comments to save me some time when I'm checking my code and reduce the potential for any errors.


I normally use IntelliJ IDE for Terraform on a MAC but also have VS code set up that I can use.


Is there a plugin for either I could use or even a different tool? The imaging variable might be difficult to lint due as I use underscores to separate words in my variable names so the tool would need to know to treat underscores as white space for linting purposes.

Answered by David Edmunds
VSCode has a Terraform Lint "l2fprod.terraform-fork" Have NOT tried it. Did a simple search terra + lint. HTH DrewBai

Your Answer

Interviews

Parent Categories