{"slug": "show-hn-iac-bench-a-benchmarking-framework-for-llms-on-opentofu-generation", "title": "Show HN: Iac-bench – a benchmarking framework for LLMs on OpenTofu generation", "summary": "Massdriver has released iac-bench, an open-source framework that scores large language models on their ability to generate OpenTofu infrastructure-as-code modules, with the latest run covering 24 models across 6 briefs at 3 attempts each for 432 generated modules. Each module is graded 70% on a mechanical score from evaluating HCL and plan outputs and 30% by an LLM judge applying a published \"good OpenTofu\" doctrine, with prompts left intentionally vague to test model expertise rather than instruction-following. The tool, methodology and rankings are published on Massdriver's site, and the author, who works at the infrastructure automation and continuous delivery platform, said the scoring was kept independent.", "body_md": "I made a framework for evaluating LLM performance at writing IaC (specifically OpenTofu) modules. You provide a prompt(s) and a rubric.yaml(s) and it will use models you choose to generate a module and grade the results. I've already written 6 briefs across clouds and services (S3, Cloud SQL, App Service, Aurora global, GKE, Azure storage) and have published the results. Each model gets 3 attempts and scores are averaged. The latest run included 24 models x 6 briefs x 3 attempts = 432 modules. Results are here: [https://www.massdriver.cloud/llm-rankings](https://www.massdriver.cloud/llm-rankings)\n\nIn terms of how models are scored, 70% is mechanical score from evaluating HCL and plan outputs. The other 30% is an LLM \"judge\" that uses a published \"good OpenTofu\" doctrine to grade the modules. Prompts are intentionally left a bit vague to evaluate the expertise the LLMs use to produce a module instead of how good they are at following specific instructions, which is generally quite good.\n\nThe tool, all of the results and the methodology are all open source.\n\nDisclosure: I work at Massdriver, which is an infrastructure automation and continuous delivery platform. I've done my best to keep this tool and it's scoring independent. We simply use LLMs to generate a lot of IaC and built this to figure out which ones were the best at it and thought it would be interesting to the community.\n\nWrite-up and methodology: [https://www.massdriver.cloud/blogs/iac-bench-2026-11-results](https://www.massdriver.cloud/blogs/iac-bench-2026-11-results)\n\nHappy to answer questions. I'd also love to hear from others that have done similar evaluations like this to see if there are some suggestions or requests for the prompts we evaluate and publish.\n\nComments URL: [https://news.ycombinator.com/item?id=50701553](https://news.ycombinator.com/item?id=50701553)\n\nPoints: 2\n\n# Comments: 0", "url": "https://wpnews.pro/news/show-hn-iac-bench-a-benchmarking-framework-for-llms-on-opentofu-generation", "canonical_source": "https://github.com/massdriver-cloud/iac-bench", "published_at": "2026-11-30 16:02:11+00:00", "updated_at": "2026-11-30 16:17:13.321212+00:00", "lang": "en", "topics": ["ai-tools", "large-language-models", "ai-research", "developer-tools"], "entities": ["Massdriver", "OpenTofu", "iac-bench"], "also_reported_by": [], "takeaway": "iac-bench scores OpenTofu module generation 70% mechanically from HCL and plan outputs and 30% via an LLM judge, averaging 3 attempts per model across 6 briefs with deliberately vague prompts to test expertise over instruction-following.", "recommendation": {"advice": "When benchmarking LLM code generation, weight most of the score on mechanical checks of the output and artifacts, keep prompts vague to test expertise, and average 3 attempts per model.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/show-hn-iac-bench-a-benchmarking-framework-for-llms-on-opentofu-generation", "markdown": "https://wpnews.pro/news/show-hn-iac-bench-a-benchmarking-framework-for-llms-on-opentofu-generation.md", "text": "https://wpnews.pro/news/show-hn-iac-bench-a-benchmarking-framework-for-llms-on-opentofu-generation.txt", "jsonld": "https://wpnews.pro/news/show-hn-iac-bench-a-benchmarking-framework-for-llms-on-opentofu-generation.jsonld"}}