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 produces the correct file structure (main.tf, variables.tf, outputs.tf, versions.tf), writes well-formed variable declarations with descriptions and types, uses dynamic blocks for repeated configuration, applies correct version constraints, and provides usage instructions.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Separate main.tf",
"description": "A file named main.tf exists containing the primary resource definitions",
"max_score": 5
},
{
"name": "Separate variables.tf",
"description": "A file named variables.tf exists containing input variable declarations",
"max_score": 5
},
{
"name": "Separate outputs.tf",
"description": "A file named outputs.tf exists containing output value declarations",
"max_score": 5
},
{
"name": "Separate versions.tf",
"description": "A file named versions.tf (or equivalent) exists with the terraform block and required_providers",
"max_score": 5
},
{
"name": "Variables have descriptions",
"description": "Every variable declaration in variables.tf includes a description attribute",
"max_score": 10
},
{
"name": "Variables have types",
"description": "Every variable declaration in variables.tf includes a type attribute",
"max_score": 8
},
{
"name": "Output descriptions present",
"description": "Every output declaration in outputs.tf includes a description attribute",
"max_score": 8
},
{
"name": "Terraform version constraint",
"description": "The terraform block includes required_version with both a lower bound (>= 1.x) and an upper bound (< 2.0)",
"max_score": 10
},
{
"name": "AWS provider version pinned",
"description": "The AWS provider uses version = \"~> 6.0\" (or equivalent major-pinned ~> constraint)",
"max_score": 8
},
{
"name": "Dynamic block for security group",
"description": "The security group ingress rule(s) use a dynamic block iterating over a variable (not hardcoded cidr_blocks)",
"max_score": 12
},
{
"name": "No hardcoded region in provider",
"description": "The provider \"aws\" block uses var.aws_region or a variable reference — NOT a hardcoded string like \"us-east-1\"",
"max_score": 12
},
{
"name": "Usage instructions provided",
"description": "The response includes a table or list of generated files plus the commands to run (terraform init, plan, apply)",
"max_score": 7
},
{
"name": "locals for common tags",
"description": "A locals block exists with common tags (at minimum Environment and ManagedBy=\"Terraform\")",
"max_score": 5
}
]
}