Complete terraform toolkit with generation and validation capabilities
93
Quality
93%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Advisory
Suggest reviewing before use
{
"context": "Tests whether the agent omits default values on environment-specific variables in a shared module, uses data sources for dynamic values like availability zones, uses locals for common tags, and produces well-formed variable and output declarations.",
"type": "weighted_checklist",
"checklist": [
{
"name": "No default on region variable",
"description": "The region (or aws_region) variable in the module's variables.tf does NOT have a default attribute",
"max_score": 20
},
{
"name": "No default on environment variable",
"description": "Any variable that is environment-specific (environment, env, or similar) does NOT have a default value in the module",
"max_score": 15
},
{
"name": "Data source for AZs",
"description": "Availability zones are retrieved using data \"aws_availability_zones\" \"available\" {} rather than hardcoded strings",
"max_score": 18
},
{
"name": "locals for common tags",
"description": "A locals block defines common_tags (or equivalent) including at least Environment and ManagedBy = \"Terraform\"",
"max_score": 12
},
{
"name": "Tags applied via locals",
"description": "Resource blocks reference the locals common_tags rather than duplicating tag definitions inline",
"max_score": 8
},
{
"name": "Output descriptions present",
"description": "All outputs include a description attribute",
"max_score": 8
},
{
"name": "Variables have descriptions and types",
"description": "All variable declarations include both description and type attributes",
"max_score": 8
},
{
"name": "File organization correct",
"description": "Module files include at minimum: main.tf, variables.tf, outputs.tf, versions.tf",
"max_score": 6
},
{
"name": "Consumer example provided",
"description": "Usage instructions include an example module block showing how a root module would call this module with production values",
"max_score": 5
}
]
}