Source: medium.com

Terraform Code Quality
Terraform code quality is important and there are a lot of tools to improve it. Here are a few tools that we find really useful and can be set up in minutes for you.

Indeed : maybe the security group ID you requested does exist but not in your account, and in this case your code is perfectly correct but you do not have the right to use it.

It is probably your role as a reviewer to check for variable types and descriptions and say : “ Hello, you forgot to type your variables.

There are a lot of ways this whole mix can look right in the static analysis and in the compliance as well, but turn out to be not what you expected : for example, maybe the AMI returned exists and is correct but it is not the one you expected; or this instance type by default was something like a t3 small for example and you thought it was overridden by your value and it wasn’t…

Related Articles